Beispiel #1
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    ButterKnife.bind(this);

    MainActivityRotationHandler.handleScreenRotation(
        this, savedInstanceState); // also deletes expired notes
    // if app is ran for first time

    setup();

    // !NOTE: must be called after handleScreenRotation(), cuz there getIntent() is set correctly,
    // else will result in bug (opening always display activity on screen rotation)
    ReminderNotificationStartHelper.handleIfStartedFromReminderNotifcation(this, getIntent());
  }
Beispiel #2
0
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   MainActivityRotationHandler.saveInstanceState(this, outState);
 }