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

Commit a00f8600 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

PlayerBase: more general exception catching in release

When stopping AppOps watching in the player release, catch
  any exception to be safer.

Test: see bug repro steps
Bug: 36240191
Change-Id: I8e11cfc12c305878699dc57131e35e2a98eb7b16
parent 229ce701
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -254,7 +254,7 @@ public abstract class PlayerBase {
            if (mAppOps != null) {
                mAppOps.stopWatchingMode(mAppOpsCallback);
            }
        } catch (RemoteException e) {
        } catch (Exception e) {
            // nothing to do here, the object is supposed to be released anyway
        }
    }