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

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

Merge "Update Allow-button enabled state"

parents 0f12d13b 4f05a877
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -115,6 +115,8 @@ public class GrantPermissionsViewHandlerImpl implements GrantPermissionsViewHand
        mGroupIndex = savedInstanceState.getInt(ARG_GROUP_INDEX);
        mShowDonNotAsk = savedInstanceState.getBoolean(ARG_GROUP_SHOW_DO_NOT_ASK);
        mDoNotAskChecked = savedInstanceState.getBoolean(ARG_GROUP_DO_NOT_ASK_CHECKED);

        updateDoNotAskCheckBox();
    }

    @Override
@@ -329,9 +331,11 @@ public class GrantPermissionsViewHandlerImpl implements GrantPermissionsViewHand
            mDoNotAskCheckbox.setVisibility(View.VISIBLE);
            mDoNotAskCheckbox.setOnClickListener(this);
            mDoNotAskCheckbox.setChecked(mDoNotAskChecked);
            mAllowButton.setEnabled(!mDoNotAskChecked);
        } else {
            mDoNotAskCheckbox.setVisibility(View.GONE);
            mDoNotAskCheckbox.setOnClickListener(null);
            mAllowButton.setEnabled(true);
        }
    }