Merge "Animate out screenshot UI on back and CLOSE_SYSTEM_DIALOGS" into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
764e7ac56c
@@ -493,7 +493,7 @@ public class GlobalScreenshot implements ViewTreeObserver.OnComputeInternalInset
|
||||
});
|
||||
mScreenshotLayout.setOnKeyListener((v, keyCode, event) -> {
|
||||
if (keyCode == KeyEvent.KEYCODE_BACK) {
|
||||
dismissScreenshot("back pressed", true);
|
||||
dismissScreenshot("back pressed", false);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -61,7 +61,7 @@ public class TakeScreenshotService extends Service {
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
if (ACTION_CLOSE_SYSTEM_DIALOGS.equals(intent.getAction()) && mScreenshot != null) {
|
||||
mScreenshot.dismissScreenshot("close system dialogs", true);
|
||||
mScreenshot.dismissScreenshot("close system dialogs", false);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user