Bring this up to speed on the Settings changes in N: * Use support libs for preferences * Hook up to Settings drawer through SettingsDrawerActivity Change-Id: I9365b3ebd1bbfed2936302e30da50e3f9af06665tirimbino
parent
257f8c1d0c
commit
6d0ea5b8c8
@ -1,3 +1,9 @@ |
|||||||
-keep class com.cyanogenmod.settings.device.* { |
-keep class com.cyanogenmod.settings.device.* { |
||||||
*; |
*; |
||||||
} |
} |
||||||
|
|
||||||
|
-keepclasseswithmembers class * { |
||||||
|
public <init>(android.content.Context, android.util.AttributeSet); |
||||||
|
} |
||||||
|
|
||||||
|
-keep class ** extends android.support.v14.preference.PreferenceFragment |
||||||
|
@ -0,0 +1,21 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<!-- |
||||||
|
Copyright (C) 2016 The CyanogenMod Project |
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License"); |
||||||
|
you may not use this file except in compliance with the License. |
||||||
|
You may obtain a copy of the License at |
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0 |
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software |
||||||
|
distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
See the License for the specific language governing permissions and |
||||||
|
limitations under the License. |
||||||
|
--> |
||||||
|
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> |
||||||
|
<style name="SamsungDozeSettings" parent="@android:style/Theme.Material.Settings"> |
||||||
|
<item name="preferenceTheme">@android:style/Theme.Material.Settings</item> |
||||||
|
</style> |
||||||
|
</resources> |
@ -0,0 +1,34 @@ |
|||||||
|
/* |
||||||
|
* Copyright (c) 2016 The CyanogenMod Project |
||||||
|
* |
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||||
|
* you may not use this file except in compliance with the License. |
||||||
|
* You may obtain a copy of the License at |
||||||
|
* |
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
* |
||||||
|
* Unless required by applicable law or agreed to in writing, software |
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
* See the License for the specific language governing permissions and |
||||||
|
* limitations under the License. |
||||||
|
*/ |
||||||
|
package com.cyanogenmod.settings.device; |
||||||
|
|
||||||
|
import android.app.Fragment; |
||||||
|
import android.app.FragmentTransaction; |
||||||
|
import android.os.Bundle; |
||||||
|
|
||||||
|
import com.android.settingslib.drawer.SettingsDrawerActivity; |
||||||
|
|
||||||
|
public class SamsungDozeActivity extends SettingsDrawerActivity { |
||||||
|
|
||||||
|
private static final String TAG = "samsung_doze"; |
||||||
|
|
||||||
|
protected void onCreate(Bundle savedInstanceState) { |
||||||
|
super.onCreate(savedInstanceState); |
||||||
|
|
||||||
|
getFragmentManager().beginTransaction().replace(R.id.content_frame, |
||||||
|
new TouchscreenGestureSettings(), TAG).commit(); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue