Merge "Fix NPE in DrawOverlayDetails#getSummary" into sc-dev am: 20d45cc6f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14519528 Change-Id: I204240c34d06f4d86175deebe5a793f51b6d767a
This commit is contained in:
@@ -158,6 +158,10 @@ public class DrawOverlayDetails extends AppInfoWithHeader implements OnPreferenc
|
||||
}
|
||||
|
||||
public static CharSequence getSummary(Context context, AppEntry entry) {
|
||||
if (entry == null) {
|
||||
return "";
|
||||
}
|
||||
|
||||
OverlayState state;
|
||||
if (entry.extraInfo instanceof OverlayState) {
|
||||
state = (OverlayState) entry.extraInfo;
|
||||
|
Reference in New Issue
Block a user