Example #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());
  }
Example #2
0
 @Override
 protected void onNewIntent(Intent intent) {
   super.onNewIntent(intent);
   ReminderNotificationStartHelper.handleIfStartedFromReminderNotifcation(this, intent);
 }