mirror of https://github.com/M66B/NetGuard.git
parent
8a2ddf6cac
commit
29d1c26166
|
@ -91,10 +91,8 @@
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.1.1/jars" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.1.1/jars" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/preference-v7/23.1.1/jars" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.1.1/jars" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.1.1/jars" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/23.1.1/jars" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/23.1.1/jars" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.h6ah4i.android.compat/mulsellistprefcompat/1.0.0/jars" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
|
||||||
|
@ -114,8 +112,6 @@
|
||||||
<orderEntry type="library" exported="" name="support-annotations-23.1.1" level="project" />
|
<orderEntry type="library" exported="" name="support-annotations-23.1.1" level="project" />
|
||||||
<orderEntry type="library" exported="" name="support-v4-23.1.1" level="project" />
|
<orderEntry type="library" exported="" name="support-v4-23.1.1" level="project" />
|
||||||
<orderEntry type="library" exported="" name="appcompat-v7-23.1.1" level="project" />
|
<orderEntry type="library" exported="" name="appcompat-v7-23.1.1" level="project" />
|
||||||
<orderEntry type="library" exported="" name="mulsellistprefcompat-1.0.0" level="project" />
|
|
||||||
<orderEntry type="library" exported="" name="picasso-2.5.2" level="project" />
|
<orderEntry type="library" exported="" name="picasso-2.5.2" level="project" />
|
||||||
<orderEntry type="library" exported="" name="preference-v7-23.1.1" level="project" />
|
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
|
@ -56,7 +56,5 @@ dependencies {
|
||||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
compile 'com.android.support:appcompat-v7:23.1.+'
|
compile 'com.android.support:appcompat-v7:23.1.+'
|
||||||
compile 'com.android.support:recyclerview-v7:23.1.+'
|
compile 'com.android.support:recyclerview-v7:23.1.+'
|
||||||
compile 'com.android.support:preference-v7:23.1.+'
|
|
||||||
compile 'com.h6ah4i.android.compat:mulsellistprefcompat:1.0.0' // Google come on ...
|
|
||||||
compile 'com.squareup.picasso:picasso:2.5.+'
|
compile 'com.squareup.picasso:picasso:2.5.+'
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,7 +101,7 @@ public class ActivitySettings extends AppCompatActivity implements SharedPrefere
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
Util.setTheme(this);
|
Util.setTheme(this);
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
getSupportFragmentManager().beginTransaction().replace(android.R.id.content, new FragmentSettings()).commit();
|
getFragmentManager().beginTransaction().replace(android.R.id.content, new FragmentSettings()).commit();
|
||||||
getSupportActionBar().setTitle(R.string.menu_settings);
|
getSupportActionBar().setTitle(R.string.menu_settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,16 +20,13 @@ package eu.faircode.netguard;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.v7.preference.PreferenceFragmentCompat;
|
import android.preference.PreferenceFragment;
|
||||||
|
|
||||||
|
public class FragmentSettings extends PreferenceFragment {
|
||||||
|
|
||||||
public class FragmentSettings extends PreferenceFragmentCompat {
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onCreatePreferences(Bundle bundle, String s) {
|
|
||||||
addPreferencesFromResource(R.xml.preferences);
|
addPreferencesFromResource(R.xml.preferences);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,12 +20,11 @@ package eu.faircode.netguard;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.support.v7.preference.SwitchPreferenceCompat;
|
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
|
|
||||||
// https://code.google.com/p/android/issues/detail?id=26194
|
// https://code.google.com/p/android/issues/detail?id=26194
|
||||||
|
|
||||||
public class SwitchPreference extends SwitchPreferenceCompat {
|
public class SwitchPreference extends android.preference.SwitchPreference {
|
||||||
public SwitchPreference(Context context) {
|
public SwitchPreference(Context context) {
|
||||||
this(context, null);
|
this(context, null);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,12 +5,10 @@
|
||||||
|
|
||||||
<style name="BaseThemeDark" parent="Theme.AppCompat.Light.DarkActionBar">
|
<style name="BaseThemeDark" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||||
<item name="android:windowDisablePreview">true</item>
|
<item name="android:windowDisablePreview">true</item>
|
||||||
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="BaseThemeLight" parent="Theme.AppCompat">
|
<style name="BaseThemeLight" parent="Theme.AppCompat">
|
||||||
<item name="android:windowDisablePreview">true</item>
|
<item name="android:windowDisablePreview">true</item>
|
||||||
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="AppThemeTeal" parent="BaseThemeDark">
|
<style name="AppThemeTeal" parent="BaseThemeDark">
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
android:defaultValue="false"
|
android:defaultValue="false"
|
||||||
android:key="tethering"
|
android:key="tethering"
|
||||||
android:title="@string/setting_tethering" />
|
android:title="@string/setting_tethering" />
|
||||||
<com.h6ah4i.android.compat.preference.MultiSelectListPreferenceCompat
|
<MultiSelectListPreference
|
||||||
android:defaultValue="@array/default_wifi_home"
|
android:defaultValue="@array/default_wifi_home"
|
||||||
android:key="wifi_homes"
|
android:key="wifi_homes"
|
||||||
android:summary="@string/summary_wifi_home" />
|
android:summary="@string/summary_wifi_home" />
|
||||||
|
|
Loading…
Reference in New Issue