Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Fixed button order in confirm prompt #1403

Merged
merged 2 commits into from
Jul 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,6 @@ public boolean onGenericMotionEvent(MotionEvent aEvent) {
}

private void setPrivateBrowsingEnabled(boolean isEnabled) {
// TODO: Fade in/out the browser window. Waiting for https://github.com/MozillaReality/FirefoxReality/issues/77
}

public void setNoInternetToastVisible(boolean aVisible) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void setButtons(String[] btnMsg) {
// Returning 0 should be Ok but is in fact Cancel.
if (btnMsg[POSITIVE] != null) {
mButtons[POSITIVE].setText(btnMsg[POSITIVE]);
mButtons[POSITIVE].setTag(NEGATIVE);
mButtons[POSITIVE].setTag(POSITIVE);
mButtons[POSITIVE].setVisibility(VISIBLE);
}
if (btnMsg[NEUTRAL] != null) {
Expand All @@ -106,7 +106,7 @@ public void setButtons(String[] btnMsg) {
}
if (btnMsg[NEGATIVE] != null) {
mButtons[NEGATIVE].setText(btnMsg[NEGATIVE]);
mButtons[NEGATIVE].setTag(POSITIVE);
mButtons[NEGATIVE].setTag(NEGATIVE);
mButtons[NEGATIVE].setVisibility(VISIBLE);
}
}
Expand Down