Forráskód Böngészése

Fix black screen on Android

Sebastián Katzer 12 éve
szülő
commit
ffc8f4630f
2 módosított fájl, 5 hozzáadás és 1 törlés
  1. 3 0
      README.md
  2. 2 1
      src/android/Receiver.java

+ 3 - 0
README.md

@@ -35,6 +35,9 @@ cordova plugin rm de.appplant.cordova.plugin.local-notification
 ```
 
 ## Release Notes
+#### Version 0.7.0 (not yet released)
+- [bugfix:] Black screen on Android (#23)
+
 #### Version 0.6.2 (04.12.2013)
 - Release under the Apache 2.0 license.
 

+ 2 - 1
src/android/Receiver.java

@@ -132,7 +132,8 @@ public class Receiver extends BroadcastReceiver {
      */
     private Builder setClickEvent (Builder notification) {
         Intent intent = new Intent(context, ReceiverActivity.class)
-            .putExtra(OPTIONS, options.getJSONObject().toString());
+            .putExtra(OPTIONS, options.getJSONObject().toString())
+            .setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
 
         PendingIntent contentIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);