summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2016-02-11 15:20:07 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-11 15:46:25 -0800
commit299718f279a75bbab12107b3a1f80aa9b5f5ed5c (patch)
treeef185817d67ea85a0a2b2e49dc97e384b93902b5 /src
parentaa3fa6f64368c8855ae3cc167c966ffce74c2db8 (diff)
downloadandroid_packages_apps_Trebuchet-299718f279a75bbab12107b3a1f80aa9b5f5ed5c.zip
android_packages_apps_Trebuchet-299718f279a75bbab12107b3a1f80aa9b5f5ed5c.tar.gz
android_packages_apps_Trebuchet-299718f279a75bbab12107b3a1f80aa9b5f5ed5c.tar.bz2
Trebuchet: Lock orientation while in grid size fragment
Issue-id: CYNGNOS-2013 Change-Id: I14a8dfd98acd615c7ffd4b311027f5c46072cea8
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/Launcher.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index f80139e..a5822dc 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -1212,6 +1212,7 @@ public class Launcher extends Activity
DynamicGridSizeFragment.DYNAMIC_GRID_SIZE_FRAGMENT);
if (gridFragment != null) {
mDynamicGridSizeFragment.setSize();
+ unlockScreenOrientation(true);
}
}
@@ -1908,7 +1909,7 @@ public class Launcher extends Activity
public void onClickDynamicGridSizeButton() {
FragmentManager fragmentManager = getFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
-
+ lockScreenOrientation();
mDynamicGridSizeFragment = new DynamicGridSizeFragment();
fragmentTransaction.replace(R.id.launcher, mDynamicGridSizeFragment,
DynamicGridSizeFragment.DYNAMIC_GRID_SIZE_FRAGMENT);
@@ -1957,7 +1958,7 @@ public class Launcher extends Activity
}
fragmentTransaction
.remove(mDynamicGridSizeFragment).commit();
-
+ unlockScreenOrientation(true);
mDarkPanel.setVisibility(View.VISIBLE);
ObjectAnimator anim = ObjectAnimator.ofFloat(
mDarkPanel, "alpha", 0.3f, 0.0f);
@@ -2809,6 +2810,7 @@ public class Launcher extends Activity
DynamicGridSizeFragment.DYNAMIC_GRID_SIZE_FRAGMENT);
if (gridFragment != null) {
mDynamicGridSizeFragment.setSize();
+ unlockScreenOrientation(true);
}
else {
showWorkspace(true);