Merge "Catch Security and IllegalStateExceptions when enabling overlays"

This commit is contained in:
Winson Chiu
2020-01-24 19:40:06 +00:00
committed by Android (Google) Code Review

View File

@@ -126,8 +126,8 @@ public class OverlayCategoryPreferenceController extends DeveloperOptionsPrefere
return mOverlayManager.setEnabledExclusiveInCategory(packageName,
USER_SYSTEM);
}
} catch (RemoteException re) {
Log.w(TAG, "Error enabling overlay.", re);
} catch (SecurityException | IllegalStateException | RemoteException e) {
Log.w(TAG, "Error enabling overlay.", e);
return false;
}
}