Loading media/java/android/media/session/MediaSession.java +2 −5 Original line number Diff line number Diff line Loading @@ -191,11 +191,8 @@ public final class MediaSession { return; } if (mCallback != null) { if (mCallback.mCallback == callback) { Log.w(TAG, "Tried to set same callback, ignoring"); return; } // We're changing callbacks, clear the session from the old one. // We're updating the callback, clear the session from the old // one. mCallback.mCallback.mSession = null; } if (handler == null) { Loading media/java/android/media/session/MediaSessionLegacyHelper.java +1 −4 Original line number Diff line number Diff line Loading @@ -467,10 +467,7 @@ public class MediaSessionLegacyHelper { mSessions.remove(mPi); } else if (mCb == null) { mCb = new SessionCallback(); Handler handler = null; if (Looper.myLooper() == null) { handler = new Handler(Looper.getMainLooper()); } Handler handler = new Handler(Looper.getMainLooper()); mSession.setCallback(mCb, handler); } } Loading Loading
media/java/android/media/session/MediaSession.java +2 −5 Original line number Diff line number Diff line Loading @@ -191,11 +191,8 @@ public final class MediaSession { return; } if (mCallback != null) { if (mCallback.mCallback == callback) { Log.w(TAG, "Tried to set same callback, ignoring"); return; } // We're changing callbacks, clear the session from the old one. // We're updating the callback, clear the session from the old // one. mCallback.mCallback.mSession = null; } if (handler == null) { Loading
media/java/android/media/session/MediaSessionLegacyHelper.java +1 −4 Original line number Diff line number Diff line Loading @@ -467,10 +467,7 @@ public class MediaSessionLegacyHelper { mSessions.remove(mPi); } else if (mCb == null) { mCb = new SessionCallback(); Handler handler = null; if (Looper.myLooper() == null) { handler = new Handler(Looper.getMainLooper()); } Handler handler = new Handler(Looper.getMainLooper()); mSession.setCallback(mCb, handler); } } Loading