Skip to content

Commit

Permalink
fbandroid/libraries/fresco/samples/scrollperf/src/main/java/com/faceb…
Browse files Browse the repository at this point in the history
…ook/samples/scrollperf/MainActivity.java

Reviewed By: jocelynluizzi13

Differential Revision: D65144736

fbshipit-source-id: 34b77f1db5a1b4b28299e4e54226da5f8d40e14c
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Oct 30, 2024
1 parent 310ae62 commit 0e58040
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit 0e58040

Please sign in to comment.