|
@@ -42,12 +42,10 @@ abstract public class AbstractClickReceiver extends Activity {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Called when local notification was clicked to launch the main intent.
|
|
* Called when local notification was clicked to launch the main intent.
|
|
|
- *
|
|
|
|
|
- * @param state Saved instance state
|
|
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
- public void onCreate (Bundle state) {
|
|
|
|
|
- super.onCreate(state);
|
|
|
|
|
|
|
+ protected void onResume() {
|
|
|
|
|
+ super.onResume();
|
|
|
|
|
|
|
|
Intent intent = getIntent();
|
|
Intent intent = getIntent();
|
|
|
Bundle bundle = intent.getExtras();
|
|
Bundle bundle = intent.getExtras();
|
|
@@ -63,15 +61,6 @@ abstract public class AbstractClickReceiver extends Activity {
|
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
onClick(toast, bundle);
|
|
onClick(toast, bundle);
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * Fixes "Unable to resume activity" error.
|
|
|
|
|
- * Theme_NoDisplay: Activities finish themselves before being resumed.
|
|
|
|
|
- */
|
|
|
|
|
- @Override
|
|
|
|
|
- protected void onResume() {
|
|
|
|
|
- super.onResume();
|
|
|
|
|
finish();
|
|
finish();
|
|
|
}
|
|
}
|
|
|
|
|
|