Skip to content

Commit

Permalink
SystemUI: load current user's qs tiles
Browse files Browse the repository at this point in the history
Change-Id: I29cd37d0daba3f25e8b7d07eb62df0ad344c9a80
Signed-off-by: Roman Birg <roman@cyngn.com>
  • Loading branch information
romanbb committed Mar 19, 2015
1 parent 2f98e27 commit 9869348
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.os.UserHandle;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.util.Log;
Expand Down Expand Up @@ -329,8 +330,8 @@ private QSTile<?> createTile(String tileSpec) {
private List<String> loadTileSpecs() {
final Resources res = mContext.getResources();
final String defaultTileList = res.getString(R.string.quick_settings_tiles_default);
String tileList = Settings.Secure.getString(mContext.getContentResolver(),
Settings.Secure.QS_TILES);
String tileList = Settings.Secure.getStringForUser(mContext.getContentResolver(),
Settings.Secure.QS_TILES, UserHandle.USER_CURRENT);
if (DEBUG) Log.d(TAG, "Config string: "+tileList);
if (tileList == null) {
tileList = res.getString(R.string.quick_settings_tiles);
Expand Down

0 comments on commit 9869348

Please sign in to comment.