android: rockchip: Minor fixes for HDMI & rotation
Signed-off-by: hmz007 <hmz007@gmail.com>
This commit is contained in:
@@ -12380,8 +12380,9 @@
|
||||
<string name="help_url_screenshot" translatable="false"></string>
|
||||
|
||||
<!--hdmi settings-->
|
||||
<string name="hdmi_settings">HDMI</string>
|
||||
<string name="system_rotation">System Direction</string>
|
||||
<string name="hdmi_settings">HDMI & Rotation</string>
|
||||
<string name="hdmi_dashboard_summary">Set preferred Resolution, Overscan and Rotation</string>
|
||||
<string name="system_rotation">Display Rotation</string>
|
||||
<string name="screen_title">Screen Setting</string>
|
||||
<string name="screen_main_title">Main Screen</string>
|
||||
<string name="screen_aux_title">Aux Screen</string>
|
||||
|
||||
@@ -184,6 +184,7 @@
|
||||
<Preference
|
||||
android:key="hdmi_settings"
|
||||
android:title="@string/hdmi_settings"
|
||||
android:summary="@string/hdmi_dashboard_summary"
|
||||
settings:keywords="@string/hdmi_settings"
|
||||
android:fragment="com.android.settings.display.HdmiSettings" />
|
||||
|
||||
|
||||
@@ -100,6 +100,7 @@ public class HdmiSettings extends SettingsPreferenceFragment
|
||||
private String main_switch_node = SYS_NODE_HDMI_STATUS;
|
||||
private String aux_switch_node = SYS_NODE_DP_STATUS;
|
||||
|
||||
private boolean mShowSystemRotation = true;
|
||||
private ListPreference mSystemRotation;
|
||||
private PreferenceCategory mAuxCategory;
|
||||
private CheckBoxPreference mAuxScreenVH;
|
||||
@@ -329,9 +330,7 @@ public class HdmiSettings extends SettingsPreferenceFragment
|
||||
}
|
||||
|
||||
private void init() {
|
||||
//boolean showSystemRotation = mShowSettings != DISPLAY_SHOW_SETTINGS.ONLY_SHOW_AUX;
|
||||
boolean showSystemRotation = false;
|
||||
if (showSystemRotation) {
|
||||
if (mShowSystemRotation) {
|
||||
mSystemRotation = (ListPreference) findPreference(KEY_SYSTEM_ROTATION);
|
||||
mSystemRotation.setOnPreferenceChangeListener(this);
|
||||
try {
|
||||
@@ -357,7 +356,8 @@ public class HdmiSettings extends SettingsPreferenceFragment
|
||||
}
|
||||
} else {
|
||||
removePreference(KEY_SYSTEM_ROTATION);
|
||||
}//这边
|
||||
}
|
||||
|
||||
int displayNumber = DrmDisplaySetting.getDisplayNumber();
|
||||
Log.v(TAG, "displayNumber=" + displayNumber);
|
||||
String[] connectorInfos = DrmDisplaySetting.getConnectorInfo();
|
||||
@@ -366,6 +366,7 @@ public class HdmiSettings extends SettingsPreferenceFragment
|
||||
Log.v(TAG, i + " connectorInfo====" + connectorInfos[i]);
|
||||
}
|
||||
}
|
||||
|
||||
mDisplayInfoList.clear();
|
||||
for (int i = 0; i < displayNumber; i++) {
|
||||
String typeName = "";
|
||||
|
||||
Reference in New Issue
Block a user