From 0e58040d64ca31ed4be331d1f973f279eb937ac9 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005287564 Date: Tue, 29 Oct 2024 20:21:26 -0700 Subject: [PATCH] fbandroid/libraries/fresco/samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/MainActivity.java Reviewed By: jocelynluizzi13 Differential Revision: D65144736 fbshipit-source-id: 34b77f1db5a1b4b28299e4e54226da5f8d40e14c --- .../java/com/facebook/samples/scrollperf/MainActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/MainActivity.java b/samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/MainActivity.java index b46b8b5079..540a6db938 100644 --- a/samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/MainActivity.java +++ b/samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/MainActivity.java @@ -11,10 +11,12 @@ import android.view.MenuItem; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.Toolbar; +import com.facebook.infer.annotation.Nullsafe; import com.facebook.samples.scrollperf.fragments.MainFragment; import com.facebook.samples.scrollperf.fragments.SettingsFragment; import com.facebook.samples.scrollperf.util.SizeUtil; +@Nullsafe(Nullsafe.Mode.LOCAL) public class MainActivity extends AppCompatActivity { @Override @@ -23,6 +25,7 @@ protected void onCreate(Bundle savedInstanceState) { SizeUtil.initSizeData(this); setContentView(R.layout.activity_main); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); + // NULLSAFE_FIXME[Nullable Dereference] toolbar.setTitle(R.string.app_name); setSupportActionBar(toolbar); if (savedInstanceState == null) {