Chaning the behavior of settings activity.

> Making all twoState prefs backed by content provider
> Using the stadard intent defined in N for settings
> Using SharedPrefsListener instead of LauncherProvider

Change-Id: I8272f54aa780bc0436e3d0aa89096a4bd2a9194f
This commit is contained in:
Sunny Goyal
2016-05-02 10:54:12 -07:00
parent f8a2ba2707
commit 745bad9da1
8 changed files with 74 additions and 56 deletions

View File

@@ -173,6 +173,10 @@ public final class Utilities {
}
}
// TODO: Use Intent.ACTION_APPLICATION_PREFERENCES when N SDK is available.
public static final String ACTION_APPLICATION_PREFERENCES
= "android.intent.action.APPLICATION_PREFERENCES";
public static Bitmap createIconBitmap(Cursor c, int iconIndex, Context context) {
byte[] data = c.getBlob(iconIndex);
try {