diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-05-26 10:00:00 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-05-26 10:00:00 -0700 |
commit | 80ef2a9745e6103efd9698577536bbfed1fd74f6 (patch) | |
tree | 2b507d2f664405313d5b9b6109777fa004ec807f /packages | |
parent | a4e747445ac0bdd2cc561802c9c7abfedbd0d981 (diff) | |
parent | 42f8094c066209a65b09d53611ef5c93daba4c51 (diff) | |
download | frameworks_base-80ef2a9745e6103efd9698577536bbfed1fd74f6.zip frameworks_base-80ef2a9745e6103efd9698577536bbfed1fd74f6.tar.gz frameworks_base-80ef2a9745e6103efd9698577536bbfed1fd74f6.tar.bz2 |
am 42f8094c: Merge "Spiffy new compatibility mode UI." into honeycomb-mr2
* commit '42f8094c066209a65b09d53611ef5c93daba4c51':
Spiffy new compatibility mode UI.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/res/layout-sw600dp/status_bar_recent_panel.xml | 12 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java | 12 |
2 files changed, 3 insertions, 21 deletions
diff --git a/packages/SystemUI/res/layout-sw600dp/status_bar_recent_panel.xml b/packages/SystemUI/res/layout-sw600dp/status_bar_recent_panel.xml index f019e2d..42940be 100644 --- a/packages/SystemUI/res/layout-sw600dp/status_bar_recent_panel.xml +++ b/packages/SystemUI/res/layout-sw600dp/status_bar_recent_panel.xml @@ -24,23 +24,11 @@ android:layout_height="match_parent" android:layout_width="wrap_content"> - <CheckBox android:id="@+id/recents_compat_mode" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentBottom="true" - android:layout_alignParentRight="true" - android:layout_marginLeft="16dp" - android:layout_marginBottom="@*android:dimen/status_bar_height" - android:background="@drawable/hd" - android:button="@null" - /> - <FrameLayout android:id="@+id/recents_bg_protect" android:background="@drawable/recents_bg_protect_tile" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_toLeftOf="@id/recents_compat_mode" android:layout_alignParentBottom="true" android:paddingBottom="@*android:dimen/status_bar_height" android:clipToPadding="false"> diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java index 7db1ce8..fd07a5a 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/RecentAppsPanel.java @@ -358,15 +358,6 @@ public class RecentAppsPanel extends RelativeLayout implements StatusBarPanel, O mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); mRecentsContainer = (ListView) findViewById(R.id.recents_container); - mCompatMode = (CheckBox) findViewById(R.id.recents_compat_mode); - mCompatMode.setOnClickListener(new OnClickListener() { - public void onClick(View v) { - final ActivityManager am = (ActivityManager) - mContext.getSystemService(Context.ACTIVITY_SERVICE); - am.setFrontActivityScreenCompatMode(ActivityManager.COMPAT_MODE_TOGGLE); - hide(true); - } - }); View footer = inflater.inflate(R.layout.status_bar_recent_panel_footer, mRecentsContainer, false); mRecentsContainer.setScrollbarFadingEnabled(true); @@ -504,6 +495,9 @@ public class RecentAppsPanel extends RelativeLayout implements StatusBarPanel, O } private void updateShownCompatMode() { + if (mCompatMode == null) { + return; + } final ActivityManager am = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); int mode = am.getFrontActivityScreenCompatMode(); |