summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRockchip2015-09-09 18:05:59 +0800
committerRockchip2015-09-09 18:05:59 +0800
commita4768485c3a64c861047ecb99f669f0d180c4377 (patch)
treeb2bec71e1ae48a31d635c73a63b8ef509a6c9e75
parent860a8abefaa744d3eda786245e5eaff568061b25 (diff)
only 3288 can use MultiWindow
-rw-r--r--src/com/android/settings/DisplaySettings.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/DisplaySettings.java b/src/com/android/settings/DisplaySettings.java
index e0a3e2f..62eb26d 100644
--- a/src/com/android/settings/DisplaySettings.java
+++ b/src/com/android/settings/DisplaySettings.java
@@ -136,6 +136,7 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
private boolean mUserSet=false;
boolean first=true;
private boolean isTablet;
+ private boolean enableMulti;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@@ -145,6 +146,7 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
addPreferencesFromResource(R.xml.display_settings);
//$_rbox_$_modify_by lly$_begin
isTablet = "tablet".equals(SystemProperties.get("ro.target.product", "tablet"));
+ enableMulti = "rk3288".equals(SystemProperties.get("ro.board.platform", "tablet"));
//$_rbox_$_modify_by lly$_end
mScreenSaverPreference = findPreference(KEY_SCREEN_SAVER);
@@ -245,7 +247,7 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
} else {
removePreference(KEY_AUTO_ROTATE);
}
- if(isTablet){
+ if(isTablet&&enableMulti){
mMultiWindowPreference = (SwitchPreference) findPreference(KEY_MULTI_WINDOW);
mMultiWindowPreference.setOnPreferenceChangeListener(this);
}else{