Commit b1a6e7d5 by Sebastián Katzer

Launch app and fire event after the onStart() [fixes #1505]

parent 523a4e1b
...@@ -42,12 +42,10 @@ abstract public class AbstractClickReceiver extends Activity { ...@@ -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) { protected void onResume() {
super.onCreate(state); 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 { ...@@ -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();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment