android:layout_below="@id/font_hinting"
android:layout_alignParentLeft="true"
android:text="@string/development_settings_show_xmpp_text" />
-
+
+ <CheckBox android:id="@+id/window_orientation_listener_log"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/show_xmpp"
+ android:layout_alignParentLeft="true"
+ android:text="@string/development_settings_window_orientation_listener_log" />
+
</RelativeLayout>
</ScrollView>
private CheckBox mShowBackgroundCB;
private CheckBox mShowSleepCB;
private CheckBox mShowXmppCB;
+ private CheckBox mWindowOrientationListenerLogCB;
private CheckBox mCompatibilityModeCB;
private Spinner mMaxProcsSpinner;
private Spinner mWindowAnimationScaleSpinner;
private boolean mWaitForDebugger;
private boolean mAlwaysFinish;
private int mPointerLocation;
+ private int mWindowOrientationListenerLog;
private int mProcessLimit;
private boolean mShowSleep;
private boolean mShowXmpp;
mShowSleepCB.setOnClickListener(mShowSleepClicked);
mShowXmppCB = (CheckBox)findViewById(R.id.show_xmpp);
mShowXmppCB.setOnClickListener(mShowXmppClicked);
+ mWindowOrientationListenerLogCB = (CheckBox)findViewById(R.id.window_orientation_listener_log);
+ mWindowOrientationListenerLogCB.setOnClickListener(mWindowOrientationListenerLogClicked);
mCompatibilityModeCB = (CheckBox)findViewById(R.id.compatibility_mode);
mCompatibilityModeCB.setOnClickListener(mCompatibilityModeClicked);
mMaxProcsSpinner = (Spinner)findViewById(R.id.max_procs);
updateFlingerOptions();
updateSleepOptions();
updateXmppOptions();
+ updateWindowOrientationListenerLogOptions();
updateCompatibilityOptions();
try {
mPointerLocationSpinner.setSelection(mPointerLocation);
}
+ private void writeWindowOrientationListenerLogOptions() {
+ Settings.System.putInt(getContentResolver(),
+ Settings.System.WINDOW_ORIENTATION_LISTENER_LOG, mWindowOrientationListenerLog);
+ }
+
+ private void updateWindowOrientationListenerLogOptions() {
+ mWindowOrientationListenerLog = Settings.System.getInt(getContentResolver(),
+ Settings.System.WINDOW_ORIENTATION_LISTENER_LOG, 0);
+ mWindowOrientationListenerLogCB.setChecked(mWindowOrientationListenerLog != 0);
+ }
+
// Returns the current state of the system property that controls
// strictmode flashes. One of:
// 0: not explicitly set one way or another
}
};
+ private View.OnClickListener mWindowOrientationListenerLogClicked = new View.OnClickListener() {
+ public void onClick(View v) {
+ mWindowOrientationListenerLog = ((CheckBox)v).isChecked() ? 1 : 0;
+ writeWindowOrientationListenerLogOptions();
+ }
+ };
+
private Spinner.OnItemSelectedListener mPointerLocationChanged
= new Spinner.OnItemSelectedListener() {
public void onItemSelected(android.widget.AdapterView av, View v,