Fixed: Selected Search engine on wrong element.
Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
This commit is contained in:
@@ -79,7 +79,7 @@ class SettingsFragment : Fragment(),
|
|||||||
packageInfo.versionName
|
packageInfo.versionName
|
||||||
)
|
)
|
||||||
|
|
||||||
binding.miscellaneousSearchEngineText.text = preferenceHelper.searchEngines.getString(context)
|
binding.miscellaneousSearchEngineControl.text = preferenceHelper.searchEngines.getString(context)
|
||||||
|
|
||||||
binding.gesturesDoubleTapControl.text = preferenceHelper.doubleTapAction.getString(context)
|
binding.gesturesDoubleTapControl.text = preferenceHelper.doubleTapAction.getString(context)
|
||||||
binding.gesturesSwipeUpControl.text = preferenceHelper.swipeUpAction.getString(context)
|
binding.gesturesSwipeUpControl.text = preferenceHelper.swipeUpAction.getString(context)
|
||||||
@@ -264,7 +264,7 @@ class SettingsFragment : Fragment(),
|
|||||||
dialog.setItems(itemStrings) { _, which ->
|
dialog.setItems(itemStrings) { _, which ->
|
||||||
val selectedItem = items[which]
|
val selectedItem = items[which]
|
||||||
preferenceViewModel.setSearchEngine(selectedItem)
|
preferenceViewModel.setSearchEngine(selectedItem)
|
||||||
binding.miscellaneousSearchEngineText.text = preferenceHelper.searchEngines.name
|
binding.miscellaneousSearchEngineControl.text = preferenceHelper.searchEngines.name
|
||||||
}
|
}
|
||||||
dialog.show()
|
dialog.show()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user