am 329e5b15
: Merge "Fix NPE for stability tests" into klp-dev
* commit '329e5b159a559791c41fbf401cf1af5063caf1cf': Fix NPE for stability tests
This commit is contained in:
@@ -249,7 +249,10 @@ public class PowerUsageSummary extends PreferenceFragment {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case BatteryStatsHelper.MSG_REPORT_FULLY_DRAWN:
|
case BatteryStatsHelper.MSG_REPORT_FULLY_DRAWN:
|
||||||
getActivity().reportFullyDrawn();
|
Activity activity = getActivity();
|
||||||
|
if (activity != null) {
|
||||||
|
activity.reportFullyDrawn();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
super.handleMessage(msg);
|
super.handleMessage(msg);
|
||||||
|
Reference in New Issue
Block a user