android: Swap Default and Install buttons for GPU driver installation dialog
This commit is contained in:
parent
72247a2324
commit
792ce5cb2f
|
@ -95,7 +95,7 @@ class HomeSettingsFragment : Fragment() {
|
||||||
.setTitle(getString(R.string.select_gpu_driver_title))
|
.setTitle(getString(R.string.select_gpu_driver_title))
|
||||||
.setMessage(driverName)
|
.setMessage(driverName)
|
||||||
.setNegativeButton(android.R.string.cancel, null)
|
.setNegativeButton(android.R.string.cancel, null)
|
||||||
.setPositiveButton(R.string.select_gpu_driver_default) { _: DialogInterface?, _: Int ->
|
.setNeutralButton(R.string.select_gpu_driver_default) { _: DialogInterface?, _: Int ->
|
||||||
GpuDriverHelper.installDefaultDriver(requireContext())
|
GpuDriverHelper.installDefaultDriver(requireContext())
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
requireContext(),
|
requireContext(),
|
||||||
|
@ -103,7 +103,7 @@ class HomeSettingsFragment : Fragment() {
|
||||||
Toast.LENGTH_SHORT
|
Toast.LENGTH_SHORT
|
||||||
).show()
|
).show()
|
||||||
}
|
}
|
||||||
.setNeutralButton(R.string.select_gpu_driver_install) { _: DialogInterface?, _: Int ->
|
.setPositiveButton(R.string.select_gpu_driver_install) { _: DialogInterface?, _: Int ->
|
||||||
mainActivity.getDriver.launch(arrayOf("application/zip"))
|
mainActivity.getDriver.launch(arrayOf("application/zip"))
|
||||||
}
|
}
|
||||||
.show()
|
.show()
|
||||||
|
|
Loading…
Reference in New Issue