FileDocCategorySizeDatePackage
BugreportPrefs.javaAPI DocAndroid 5.1 API1590Thu Mar 12 22:22:42 GMT 2015com.android.shell

BugreportPrefs

public class BugreportPrefs extends Object
Preferences related to bug reports.

Fields Summary
private static final String
PREFS_BUGREPORT
private static final String
KEY_WARNING_STATE
public static final int
STATE_UNKNOWN
public static final int
STATE_SHOW
public static final int
STATE_HIDE
Constructors Summary
Methods Summary
public static intgetWarningState(android.content.Context context, int def)


           
        final SharedPreferences prefs = context.getSharedPreferences(
                PREFS_BUGREPORT, Context.MODE_PRIVATE);
        return prefs.getInt(KEY_WARNING_STATE, def);
    
public static voidsetWarningState(android.content.Context context, int value)

        final SharedPreferences prefs = context.getSharedPreferences(
                PREFS_BUGREPORT, Context.MODE_PRIVATE);
        prefs.edit().putInt(KEY_WARNING_STATE, value).apply();