Making Settings > Storage multiprofile aware
Also fixing the order of preferences there. Bug: 22223456 Bug: 22117317 Change-Id: I9261fe46bfce518fd1ce3d0faef07cffe6869e34
This commit is contained in:
@@ -17,28 +17,12 @@
|
||||
package com.android.settings.deviceinfo;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.UserHandle;
|
||||
import android.preference.Preference;
|
||||
|
||||
import com.android.settings.R;
|
||||
|
||||
public class StorageItemPreference extends Preference {
|
||||
public final int userHandle;
|
||||
public int userHandle;
|
||||
|
||||
public StorageItemPreference(Context context, int titleRes) {
|
||||
this(context, context.getText(titleRes), UserHandle.USER_NULL);
|
||||
}
|
||||
|
||||
public StorageItemPreference(Context context, CharSequence title, int userHandle) {
|
||||
public StorageItemPreference(Context context) {
|
||||
super(context);
|
||||
|
||||
setTitle(title);
|
||||
setSummary(R.string.memory_calculating_size);
|
||||
|
||||
this.userHandle = userHandle;
|
||||
}
|
||||
|
||||
public void setLoading() {
|
||||
setSummary(R.string.memory_calculating_size);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user