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

Commit ade4895

Browse files
authored
Fix voice search button visibility (#2730)
1 parent 953feb1 commit ade4895

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

app/src/common/shared/org/mozilla/vrbrowser/ui/views/NavigationURLBar.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ private void initialize(Context aContext) {
137137

138138
mBinding.urlEditText.setOnFocusChangeListener((view, focused) -> {
139139
boolean isUrlEmpty = mBinding.urlEditText.getText().length() == 0;
140-
mViewModel.setIsMicrophoneEnabled(!focused || isUrlEmpty);
141140
mViewModel.setIsFocused(focused);
142141
mViewModel.setIsUrlEmpty(isUrlEmpty);
143142
if (!focused) {
@@ -381,7 +380,6 @@ public void handleURLEdit(String text) {
381380
}
382381
}
383382

384-
mViewModel.setIsMicrophoneEnabled(!text.isEmpty());
385383
clearFocus();
386384
}
387385

@@ -435,7 +433,6 @@ public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
435433
String aURL = mBinding.urlEditText.getText().toString();
436434
boolean empty = aURL.length() == 0 || aURL.startsWith("about://");
437435
mViewModel.setIsUrlEmpty(empty);
438-
mViewModel.setIsMicrophoneEnabled(empty);
439436
}
440437

441438
@Override

0 commit comments

Comments
 (0)