FileDocCategorySizeDatePackage
LocalPreferences.javaAPI DocAndroid 5.1 API1745Thu Mar 12 22:22:40 GMT 2015com.android.documentsui

LocalPreferences

public class LocalPreferences extends Object

Fields Summary
private static final String
KEY_ADVANCED_DEVICES
private static final String
KEY_FILE_SIZE
Constructors Summary
Methods Summary
public static booleangetDisplayAdvancedDevices(android.content.Context context)


         
        return PreferenceManager.getDefaultSharedPreferences(context)
                .getBoolean(KEY_ADVANCED_DEVICES, false);
    
public static booleangetDisplayFileSize(android.content.Context context)

        return PreferenceManager.getDefaultSharedPreferences(context)
                .getBoolean(KEY_FILE_SIZE, false);
    
public static voidsetDisplayAdvancedDevices(android.content.Context context, boolean display)

        PreferenceManager.getDefaultSharedPreferences(context).edit()
                .putBoolean(KEY_ADVANCED_DEVICES, display).apply();
    
public static voidsetDisplayFileSize(android.content.Context context, boolean display)

        PreferenceManager.getDefaultSharedPreferences(context).edit()
                .putBoolean(KEY_FILE_SIZE, display).apply();