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

Commit 8a8f68fc authored by Andrew Lee's avatar Andrew Lee Committed by Android (Google) Code Review
Browse files

Merge "Protect against null context." into mnc-dev

parents 65ea6334 d9c8b90c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -272,8 +272,8 @@ public class VoicemailPlaybackPresenter
     * Must be invoked when the parent activity is paused.
     */
    public void onPause() {
        int orientation = mContext.getResources().getConfiguration().orientation;
        if (mInitialOrientation != orientation && mIsPrepared) {
        if (mContext != null && mIsPrepared
                && mInitialOrientation != mContext.getResources().getConfiguration().orientation) {
            // If an orientation change triggers the pause, retain the MediaPlayer.
            Log.d(TAG, "onPause: Orientation changed.");
            return;