mirror of https://github.com/tasks/tasks
Add debug preferences activity
parent
3669c175ef
commit
dfebb126bb
@ -0,0 +1,21 @@
|
|||||||
|
package org.tasks.preferences;
|
||||||
|
|
||||||
|
import android.os.Bundle;
|
||||||
|
import org.tasks.R;
|
||||||
|
import org.tasks.injection.ActivityComponent;
|
||||||
|
import org.tasks.injection.InjectingPreferenceActivity;
|
||||||
|
|
||||||
|
public class DebugPreferences extends InjectingPreferenceActivity {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
addPreferencesFromResource(R.xml.preferences_debug);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void inject(ActivityComponent component) {
|
||||||
|
component.inject(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
|
<CheckBoxPreference
|
||||||
|
android:key="@string/p_leak_canary"
|
||||||
|
android:title="@string/debug_leak_canary" />
|
||||||
|
|
||||||
|
<CheckBoxPreference
|
||||||
|
android:key="@string/p_strict_mode"
|
||||||
|
android:title="@string/debug_strict_mode"/>
|
||||||
|
|
||||||
|
<CheckBoxPreference
|
||||||
|
android:key="@string/p_debug_pro"
|
||||||
|
android:title="@string/debug_pro" />
|
||||||
|
|
||||||
|
</PreferenceScreen>
|
||||||
@ -1,21 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
|
|
||||||
<PreferenceCategory
|
|
||||||
android:title="@string/debug">
|
|
||||||
|
|
||||||
<CheckBoxPreference
|
|
||||||
android:key="@string/p_leak_canary"
|
|
||||||
android:title="@string/debug_leak_canary" />
|
|
||||||
|
|
||||||
<CheckBoxPreference
|
|
||||||
android:key="@string/p_strict_mode"
|
|
||||||
android:title="@string/debug_strict_mode"/>
|
|
||||||
|
|
||||||
<CheckBoxPreference
|
|
||||||
android:key="@string/p_debug_pro"
|
|
||||||
android:title="@string/debug_pro" />
|
|
||||||
|
|
||||||
</PreferenceCategory>
|
|
||||||
|
|
||||||
</PreferenceScreen>
|
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
package org.tasks.preferences;
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
|
|
||||||
|
public class DebugPreferences extends Activity {
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue