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

Commit 23606536 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "add USB mass storage notification to tablet status bar" into ics

parents dde25b30 265a8c9f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -49,6 +49,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.Slog;
@@ -199,6 +200,8 @@ public class TabletStatusBar extends StatusBar implements

    public Context getContext() { return mContext; }

    private StorageManager mStorageManager;

    protected void addPanelWindows() {
        final Context context = mContext;
        final Resources res = mContext.getResources();
@@ -220,6 +223,11 @@ public class TabletStatusBar extends StatusBar 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 comboRSSI =