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

Commit ee5aba1

Browse files
authored
Fixed button order in confirm prompt (#1403)
* Fixed button order in confirm prompt * Removed outdated comment
1 parent c7b95ea commit ee5aba1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,6 @@ public boolean onGenericMotionEvent(MotionEvent aEvent) {
575575
}
576576

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

581580
public void setNoInternetToastVisible(boolean aVisible) {

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/prompts/ConfirmPromptWidget.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void setButtons(String[] btnMsg) {
9696
// Returning 0 should be Ok but is in fact Cancel.
9797
if (btnMsg[POSITIVE] != null) {
9898
mButtons[POSITIVE].setText(btnMsg[POSITIVE]);
99-
mButtons[POSITIVE].setTag(NEGATIVE);
99+
mButtons[POSITIVE].setTag(POSITIVE);
100100
mButtons[POSITIVE].setVisibility(VISIBLE);
101101
}
102102
if (btnMsg[NEUTRAL] != null) {
@@ -106,7 +106,7 @@ public void setButtons(String[] btnMsg) {
106106
}
107107
if (btnMsg[NEGATIVE] != null) {
108108
mButtons[NEGATIVE].setText(btnMsg[NEGATIVE]);
109-
mButtons[NEGATIVE].setTag(POSITIVE);
109+
mButtons[NEGATIVE].setTag(NEGATIVE);
110110
mButtons[NEGATIVE].setVisibility(VISIBLE);
111111
}
112112
}

0 commit comments

Comments
 (0)