geeksville 2020-07-25 20:40:00 -07:00
parent 3bcbff2f0f
commit 384bb3759e

View file

@ -810,11 +810,15 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
// exception.startResolutionForResult(this@MainActivity, REQUEST_CHECK_SETTINGS) // exception.startResolutionForResult(this@MainActivity, REQUEST_CHECK_SETTINGS)
// For now just punt and show a dialog // For now just punt and show a dialog
Toast.makeText(
requireContext(), // The context might be gone (if activity is going away) by the time this handler is called
getString(R.string.location_disabled_warning), context?.let { c ->
Toast.LENGTH_SHORT Toast.makeText(
).show() c,
getString(R.string.location_disabled_warning),
Toast.LENGTH_SHORT
).show()
}
//} else //} else
// Exceptions.report(exception) // Exceptions.report(exception)