Fix splash screen lookup. (#44131) (flutter/engine#13660)
This commit is contained in:
@@ -494,8 +494,8 @@ public class FlutterActivity extends Activity
|
||||
PackageManager.GET_META_DATA|PackageManager.GET_ACTIVITIES
|
||||
);
|
||||
Bundle metadata = activityInfo.metaData;
|
||||
Integer splashScreenId = metadata != null ? metadata.getInt(SPLASH_SCREEN_META_DATA_KEY) : null;
|
||||
return splashScreenId != null
|
||||
int splashScreenId = metadata != null ? metadata.getInt(SPLASH_SCREEN_META_DATA_KEY) : null;
|
||||
return splashScreenId != 0
|
||||
? Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP
|
||||
? getResources().getDrawable(splashScreenId, getTheme())
|
||||
: getResources().getDrawable(splashScreenId)
|
||||
|
||||
Reference in New Issue
Block a user