Merge "Set mScreenBitmap before saveScreenshotAndToast" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a5beb722bb
@@ -419,6 +419,10 @@ public class ScreenshotController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mScreenBitmap = screenshot.getBitmap();
|
||||||
|
String oldPackageName = mPackageName;
|
||||||
|
mPackageName = screenshot.getPackageNameString();
|
||||||
|
|
||||||
if (!isUserSetupComplete(Process.myUserHandle())) {
|
if (!isUserSetupComplete(Process.myUserHandle())) {
|
||||||
Log.w(TAG, "User setup not complete, displaying toast only");
|
Log.w(TAG, "User setup not complete, displaying toast only");
|
||||||
// User setup isn't complete, so we don't want to show any UI beyond a toast, as editing
|
// User setup isn't complete, so we don't want to show any UI beyond a toast, as editing
|
||||||
@@ -433,10 +437,6 @@ public class ScreenshotController {
|
|||||||
mScreenshotTakenInPortrait =
|
mScreenshotTakenInPortrait =
|
||||||
mContext.getResources().getConfiguration().orientation == ORIENTATION_PORTRAIT;
|
mContext.getResources().getConfiguration().orientation == ORIENTATION_PORTRAIT;
|
||||||
|
|
||||||
String oldPackageName = mPackageName;
|
|
||||||
mPackageName = screenshot.getPackageNameString();
|
|
||||||
|
|
||||||
mScreenBitmap = screenshot.getBitmap();
|
|
||||||
// Optimizations
|
// Optimizations
|
||||||
mScreenBitmap.setHasAlpha(false);
|
mScreenBitmap.setHasAlpha(false);
|
||||||
mScreenBitmap.prepareToDraw();
|
mScreenBitmap.prepareToDraw();
|
||||||
|
|||||||
Reference in New Issue
Block a user