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

Commit 1fecd07b authored by Ruchi Kandoi's avatar Ruchi Kandoi Committed by android-build-merger
Browse files

Merge "Do not call setAlwaysButtonEnabled if the activity doesn't support...

Merge "Do not call setAlwaysButtonEnabled if the activity doesn't support defaults." into oc-mr1-dev am: c1235a1f
am: 0caca11d

Change-Id: Ia47decb98a151786fc9a5262eff20c55814b6170
parents d188da9e 0caca11d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1941,7 +1941,8 @@ public class ResolverActivity extends Activity {
            final int checkedPos = mAdapterView.getCheckedItemPosition();
            final boolean hasValidSelection = checkedPos != ListView.INVALID_POSITION;
            if (!useLayoutWithDefault()
                    && (!hasValidSelection || mLastSelected != checkedPos)) {
                    && (!hasValidSelection || mLastSelected != checkedPos)
                    && mAlwaysButton != null) {
                setAlwaysButtonEnabled(hasValidSelection, checkedPos, true);
                mOnceButton.setEnabled(hasValidSelection);
                if (hasValidSelection) {