Merge "Skip to the end of the folder open animation in battery saver mode." into ub-launcher3-burnaby-polish
am: 6e83dc4031
* commit '6e83dc4031b78ac6e65102b2d936e9e769686fec':
Skip to the end of the folder open animation in battery saver mode.
This commit is contained in:
@@ -3066,6 +3066,10 @@ public class Launcher extends Activity
|
||||
}
|
||||
oa.setDuration(getResources().getInteger(R.integer.config_folderExpandDuration));
|
||||
oa.start();
|
||||
if (Utilities.isPowerSaverOn(this)) {
|
||||
// Animations are disabled in battery saver mode, so just skip to the end state.
|
||||
oa.end();
|
||||
}
|
||||
}
|
||||
|
||||
private void shrinkAndFadeInFolderIcon(final FolderIcon fi, boolean animate) {
|
||||
|
||||
Reference in New Issue
Block a user