Pārlūkot izejas kodu

Value for smallIcon is required

Set value of smallIcon to icon by default as it was in the past before the smallIcon could be defined yourself.
Reported by #59
Sebastián Katzer 12 gadi atpakaļ
vecāks
revīzija
3486492067
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      src/android/Options.java

+ 4 - 0
src/android/Options.java

@@ -179,6 +179,10 @@ public class Options {
             resId = getIconValue("android", iconName);
         }
 
+        if (resId == 0) {
+            resId = getIcon();
+        }
+        
         return options.optInt("smallIcon", resId);
     }