Remove use of a deprecated getDrawable API (flutter/engine#3979)

This commit is contained in:
Jason Simmons
2017-08-15 11:54:04 -07:00
committed by GitHub
parent d6d217cb4a
commit 05dd4a01dd

View File

@@ -328,7 +328,7 @@ public final class FlutterActivityDelegate
return null;
}
try {
return activity.getResources().getDrawable(typedValue.resourceId);
return activity.getDrawable(typedValue.resourceId);
} catch (NotFoundException e) {
Log.e(TAG, "Referenced launch screen windowBackground resource does not exist");
return null;