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

Commit f9a12523 authored by Winson Chiu's avatar Winson Chiu Committed by Android (Google) Code Review
Browse files

Merge "Catch Security and IllegalStateExceptions when enabling overlays"

parents ea99b6eb 720aace3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
                }
            }