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

Commit 03e0e555 authored by Richard Huynh's avatar Richard Huynh
Browse files

SystemUI: Correct TextView & ImageView id's in DockBatteryTile

Should fix the NPE's on startup for devices with dock battery support (Asus)

Change-Id: I5edde8b8a3491eb18a06bf693a33417a3086ae59
parent 767d2ac4
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -82,9 +82,10 @@ public class DockBatteryTile extends QuickSettingsTile implements DockBatterySta

    @Override
    void updateQuickSettings() {
        TextView tv = (TextView) mTile.findViewById(R.id.dock_battery_textview);
        TextView tv = (TextView) mTile.findViewById(R.id.text);
        ImageView iv = (ImageView) mTile.findViewById(R.id.image);

        tv.setText(mLabel);
        ImageView iv = (ImageView) mTile.findViewById(R.id.dock_battery_image);
        iv.setImageDrawable(mDockBatteryIcon);
        iv.setImageLevel(mDockBatteryLevel);
    }