File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
android/capacitor/src/main/java/com/getcapacitor Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 9
9
import android .graphics .PixelFormat ;
10
10
import android .graphics .drawable .Animatable ;
11
11
import android .graphics .drawable .Drawable ;
12
+ import android .graphics .drawable .LayerDrawable ;
12
13
import android .os .Handler ;
13
14
import android .view .Gravity ;
14
15
import android .view .View ;
@@ -60,6 +61,18 @@ private static void buildViews(Context c, CapConfig config) {
60
61
((Animatable ) splash ).start ();
61
62
}
62
63
64
+ if (splash instanceof LayerDrawable ){
65
+ LayerDrawable layeredSplash = (LayerDrawable ) splash ;
66
+
67
+ for (int i = 0 ; i < layeredSplash .getNumberOfLayers (); i ++){
68
+ Drawable layerDrawable = layeredSplash .getDrawable (i );
69
+
70
+ if (layerDrawable instanceof Animatable ) {
71
+ ((Animatable ) layerDrawable ).start ();
72
+ }
73
+ }
74
+ }
75
+
63
76
splashImage = new ImageView (c );
64
77
65
78
splashImage .setFitsSystemWindows (true );
You can’t perform that action at this time.
0 commit comments