Browse Source

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

Sebastián Katzer 8 years ago
parent
commit
bc2c02ccdd
1 changed files with 4 additions and 0 deletions
  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);
             resId = assets.getResId(DEFAULT_ICON);
         }
         }
 
 
+        if (resId == 0) {
+            resId = context.getApplicationInfo().icon;
+        }
+
         if (resId == 0) {
         if (resId == 0) {
             resId = android.R.drawable.ic_popup_reminder;
             resId = android.R.drawable.ic_popup_reminder;
         }
         }