Kaynağa Gözat

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

Sebastián Katzer 8 yıl önce
ebeveyn
işleme
bc2c02ccdd
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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;
         }