Merge "Fix NPE in DrawOverlayDetails#getSummary" into sc-dev
This commit is contained in:
@@ -158,6 +158,10 @@ public class DrawOverlayDetails extends AppInfoWithHeader implements OnPreferenc
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static CharSequence getSummary(Context context, AppEntry entry) {
|
public static CharSequence getSummary(Context context, AppEntry entry) {
|
||||||
|
if (entry == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
OverlayState state;
|
OverlayState state;
|
||||||
if (entry.extraInfo instanceof OverlayState) {
|
if (entry.extraInfo instanceof OverlayState) {
|
||||||
state = (OverlayState) entry.extraInfo;
|
state = (OverlayState) entry.extraInfo;
|
||||||
|
Reference in New Issue
Block a user