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

Commit d80525db authored by Sumir Kataria's avatar Sumir Kataria
Browse files

Disallow reflection access to AdapterView#mDataChanged after P.

I talked to the biggest 3p user of this API and they are resilient
to this change.  Moving forward, our advice to developers is to
use RecyclerView.

Test: N/A
Change-Id: I8de647b10ed06f1f0f4b10865fb88ac0bcc10608
Fixes: 123768524
parent 699905e5
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -21,6 +21,7 @@ import android.annotation.Nullable;
import android.annotation.UnsupportedAppUsage;
import android.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.content.Context;
import android.database.DataSetObserver;
import android.database.DataSetObserver;
import android.os.Build;
import android.os.Parcelable;
import android.os.Parcelable;
import android.os.SystemClock;
import android.os.SystemClock;
import android.util.AttributeSet;
import android.util.AttributeSet;
@@ -152,7 +153,7 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup {
    /**
    /**
     * True if the data has changed since the last layout
     * True if the data has changed since the last layout
     */
     */
    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 123768524)
    boolean mDataChanged;
    boolean mDataChanged;


    /**
    /**