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:
Tony Wickham
2015-11-25 00:06:14 +00:00
committed by android-build-merger
3 changed files with 12 additions and 5 deletions
+4
View File
@@ -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) {