Commit 3a400752 authored by Rubén Norte's avatar Rubén Norte
Browse files

Fixes Cordova error when trying to open the app from the notification bar.

parent d2680f1f
Loading
Loading
Loading
Loading
+4 −3
Changes for src/android/com/plugin/gcm/PushHandlerActivity.java: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -23,14 +23,15 @@ public class PushHandlerActivity extends Activity
		Log.v(TAG, "onCreate");

		boolean isPushPluginActive = PushPlugin.isActive();
		if (!isPushPluginActive) {
			forceMainActivityReload();
		}
		processPushBundle(isPushPluginActive);

		GCMIntentService.cancelNotification(this);

		finish();

		if (!isPushPluginActive) {
			forceMainActivityReload();
		}
	}

	/**