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