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

Commit 265a8c9f authored by jt1134's avatar jt1134
Browse files

add USB mass storage notification to tablet status bar

some tablets (specifically Samsung 7" Galaxy Tab) ship with
a removable sdcard, and run quite well using the native tablet
interface (@160dpi instead of stock 240dpi). This change allows
the USB mass storage notification when running @160 dpi in
these situations
parent 8a9f3161
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 =