Skip to content
Browse files

remove switch-debug.ui.tablet patch

  • Loading branch information...
1 parent 0f37f8e commit ed0dce99deadcb3ca23fa0076d62ba0c87e9fb08 @riverzhou committed Oct 10, 2012
Showing with 0 additions and 58 deletions.
  1. +0 −58 0003-frameworks-base-switch-debug.ui.tablet.patch
View
58 0003-frameworks-base-switch-debug.ui.tablet.patch
@@ -1,58 +0,0 @@
-From dab29f24fa0b5b8241d10233ecac499c7e5dadf6 Mon Sep 17 00:00:00 2001
-From: River Zhou <riverzhou2000@gmail.com>
-Date: Tue, 9 Oct 2012 23:53:37 +0800
-Subject: [PATCH] add ui mode switch : debug.ui.tablet
-
-Change-Id: Ib4aea9c5aa8cfe82afeec64804e7d8a0c5c35662
----
- .../internal/policy/impl/PhoneWindowManager.java | 34 ++++++++++++--------
- 1 file changed, 21 insertions(+), 13 deletions(-)
-
-diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
-index 25da642..6354b16 100755
---- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
-+++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
-@@ -1025,19 +1025,27 @@ public class PhoneWindowManager implements WindowManagerPolicy {
- * DisplayMetrics.DENSITY_DEFAULT
- / DisplayMetrics.DENSITY_DEVICE;
-
-- if (shortSizeDp < 600) {
-- // 0-599dp: "phone" UI with a separate status & navigation bar
-- mHasSystemNavBar = false;
-- mNavigationBarCanMove = true;
-- } else if (shortSizeDp < 720) {
-- // 600-719dp: "phone" UI with modifications for larger screens
-- mHasSystemNavBar = false;
-- mNavigationBarCanMove = false;
-- } else {
-- // 720dp: "tablet" UI with a single combined status & navigation bar
-- mHasSystemNavBar = true;
-- mNavigationBarCanMove = false;
-- }
-+// if (shortSizeDp < 600) {
-+// // 0-599dp: "phone" UI with a separate status & navigation bar
-+// mHasSystemNavBar = false;
-+// mNavigationBarCanMove = true;
-+// } else if (shortSizeDp < 720) {
-+// // 600-719dp: "phone" UI with modifications for larger screens
-+// mHasSystemNavBar = false;
-+// mNavigationBarCanMove = false;
-+// } else {
-+// // 720dp: "tablet" UI with a single combined status & navigation bar
-+// mHasSystemNavBar = true;
-+// mNavigationBarCanMove = false;
-+// }
-+
-+ if(android.os.SystemProperties.getInt("debug.ui.tablet",0)==1) {
-+ mHasSystemNavBar = true;
-+ mNavigationBarCanMove = false;
-+ } else {
-+ mHasSystemNavBar = false;
-+ mNavigationBarCanMove = false;
-+ }
-
- if (!mHasSystemNavBar) {
- mHasNavigationBar = mContext.getResources().getBoolean(
---
-1.7.9.5
-

0 comments on commit ed0dce9

Please sign in to comment.
Something went wrong with that request. Please try again.