是开机的时候这个选项设置的有问题,从串口中看设置的HDMI的分辨率保存的值是正确的,只是Setting中HDMI显示除错,在源码中加了下面这段后问题就解决了:
diff --git a/src/com/android/settings/HdmiControllerActivity.java b/src/com/android/settings/HdmiControllerActivity.java
old mode 100644
new mode 100755
index 8afeb4d..456cd3c
--- a/src/com/android/settings/HdmiControllerActivity.java
+++ b/src/com/android/settings/HdmiControllerActivity.java
@@ -92,6 +92,10 @@ public class HdmiControllerActivity extends SettingsPreferenceFragment implement
mHdmiResolution.setOnPreferenceChangeListener(this);
sharedPreferences = getActivity().getSharedPreferences("HdmiSettings", Context.MODE_PRIVATE);
+ int resol = sharedPreferences.getInt("resolution", 2);
+ Log.d("HdmiReceiver","resol=="+resol);
+ resol=resol-1;
+ mHdmiResolution.setValueIndex(resol);
editor = sharedPreferences.edit();
}
是开机的时候这个选项设置的有问题,从串口中看设置的HDMI的分辨率保存的值是正确的,只是Setting中HDMI显示除错,在源码中加了下面这段后问题就解决了:
diff --git a/src/com/android/settings/HdmiControllerActivity.java b/src/com/android/settings/HdmiControllerActivity.java
old mode 100644
new mode 100755
index 8afeb4d..456cd3c
--- a/src/com/android/settings/HdmiControllerActivity.java
+++ b/src/com/android/settings/HdmiControllerActivity.java
@@ -92,6 +92,10 @@ public class HdmiControllerActivity extends SettingsPreferenceFragment implement
mHdmiResolution.setOnPreferenceChangeListener(this);
sharedPreferences = getActivity().getSharedPreferences("HdmiSettings", Context.MODE_PRIVATE);
+ int resol = sharedPreferences.getInt("resolution", 2);
+ Log.d("HdmiReceiver","resol=="+resol);
+ resol=resol-1;
+ mHdmiResolution.setValueIndex(resol);
editor = sharedPreferences.edit();
}
举报