Example #1
0
  @Override
  protected void onNewIntent(Intent intent) {
    super.onNewIntent(intent);

    // Clear app notifications
    AppNotifications.clearAll(this);

    // RTL action bar hack
    RTLSupport.mirrorActionBar(this);
  }
Example #2
0
  @Override
  protected void onResume() {
    super.onResume();

    // Save state
    mIsResumed = true;

    // Reload alerts manually
    reloadRecentAlerts();

    // Support for RTL languages
    RTLSupport.mirrorActionBar(this);

    // Clear app notifications
    AppNotifications.clearAll(this);

    // Ask user to enable GPS if necessary
    LocationDialogs.requestEnableLocationServices(this);

    // Register for broadcasts
    Broadcasts.subscribe(this, mBroadcastListener);
  }