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

Commit 5334cf60 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Fix NPE for stability tests

Bug: 9882651
Change-Id: I4164764a058d68d448ef4a4aba2a18f072079b9c
parent 256637ff
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -249,7 +249,10 @@ public class PowerUsageSummary extends PreferenceFragment {
                    }
                    break;
                case BatteryStatsHelper.MSG_REPORT_FULLY_DRAWN:
                    getActivity().reportFullyDrawn();
                    Activity activity = getActivity();
                    if (activity != null) {
                        activity.reportFullyDrawn();
                    }
                    break;
            }
            super.handleMessage(msg);