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

Commit 554d4a57 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Fix issue #5039287: Listen dies on back key on ICS but not on Gingerbread"

parents 69666e07 a5445d3b
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -4471,10 +4471,13 @@ public class Activity extends ContextThemeWrapper
                    ManagedCursor mc = mManagedCursors.get(i);
                    if (mc.mReleased || mc.mUpdated) {
                        if (!mc.mCursor.requery()) {
                            if (getApplicationInfo().targetSdkVersion
                                    >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
                                throw new IllegalStateException(
                                        "trying to requery an already closed cursor  "
                                        + mc.mCursor);
                            }
                        }
                        mc.mReleased = false;
                        mc.mUpdated = false;
                    }