summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2016-02-11 15:20:07 -0800
committerTom Powell <zifnab@zifnab06.net>2017-03-26 16:16:27 -0700
commitf0f1368fafe794b5e30db90b64bff9e94dffa9aa (patch)
tree2687eb7512740b118dca6c29641fa25c6c1f73a4
parent9e789625ecda346b2aa2ba23ace05e645b836e71 (diff)
downloadandroid_packages_apps_Trebuchet-f0f1368fafe794b5e30db90b64bff9e94dffa9aa.zip
android_packages_apps_Trebuchet-f0f1368fafe794b5e30db90b64bff9e94dffa9aa.tar.gz
android_packages_apps_Trebuchet-f0f1368fafe794b5e30db90b64bff9e94dffa9aa.tar.bz2
Trebuchet: Lock orientation while in grid size fragment
Issue-id: CYNGNOS-2013 Change-Id: I14a8dfd98acd615c7ffd4b311027f5c46072cea8
-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 33d2bd7..a9f5790 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -1190,6 +1190,7 @@ public class Launcher extends Activity
DynamicGridSizeFragment.DYNAMIC_GRID_SIZE_FRAGMENT);
if (gridFragment != null) {
mDynamicGridSizeFragment.setSize();
+ unlockScreenOrientation(true);
}
}
@@ -1884,7 +1885,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);
@@ -1930,7 +1931,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);
@@ -2767,6 +2768,7 @@ public class Launcher extends Activity
DynamicGridSizeFragment.DYNAMIC_GRID_SIZE_FRAGMENT);
if (gridFragment != null) {
mDynamicGridSizeFragment.setSize();
+ unlockScreenOrientation(true);
}
else {
showWorkspace(true);