Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56b51cd7 authored by Danny Baumann's avatar Danny Baumann Committed by Gerrit Code Review
Browse files

Merge "SystemUI: TabletStatusBar: enable storage notifications" into jellybean

parents 1ba2f3c5 dd6f166f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ import android.os.IBinder;
import android.os.Message;
import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.storage.StorageManager;
import android.provider.Settings;
import android.text.TextUtils;
import android.util.Pair;
@@ -203,6 +204,8 @@ public class TabletStatusBar extends BaseStatusBar implements

    public Context getContext() { return mContext; }

    private StorageManager mStorageManager;

    private Runnable mShowSearchPanel = new Runnable() {
        public void run() {
            showSearchPanel();
@@ -295,6 +298,11 @@ public class TabletStatusBar extends BaseStatusBar implements
        mBluetoothController.addIconView(
                (ImageView)mNotificationPanel.findViewById(R.id.bluetooth));

        // storage
        mStorageManager = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE);
        mStorageManager.registerListener(
                new com.android.systemui.usb.StorageNotification(context));

        // network icons: either a combo icon that switches between mobile and data, or distinct
        // mobile and data icons
        final ImageView mobileRSSI =