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

Commit c1d52ec2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Work around AbsListView.confirmCheckedPositionsById() not respecting...

Merge "Work around AbsListView.confirmCheckedPositionsById() not respecting adapter count." into rvc-dev
parents b51245a7 812d7ce2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -662,6 +662,10 @@ public class RequestRoleFragment extends DialogFragment {

        @Override
        public long getItemId(int position) {
            if (position >= getCount()) {
                // Work around AbsListView.confirmCheckedPositionsById() not respecting our count.
                return ListView.INVALID_ROW_ID;
            }
            Pair<ApplicationInfo, Boolean> qualifyingApplication = getItem(position);
            return qualifyingApplication == null ? 0
                    : qualifyingApplication.first.packageName.hashCode();