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

Using application icon if res://icon fails [fixes #920]

Sebastián Katzer 8 éve
szülő
commit
bc2c02ccdd
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      src/android/notification/Options.java

+ 4 - 0
src/android/notification/Options.java

@@ -273,6 +273,10 @@ public class Options {
             resId = assets.getResId(DEFAULT_ICON);
         }
 
+        if (resId == 0) {
+            resId = context.getApplicationInfo().icon;
+        }
+
         if (resId == 0) {
             resId = android.R.drawable.ic_popup_reminder;
         }