Merge pull request #2658 from Philoul/AS_Icon_with_Constraints

Add constraintChecker for autosens icon in overview
This commit is contained in:
Milos Kozak 2020-05-19 20:58:24 +02:00 committed by GitHub
commit 0fe13860aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -757,7 +757,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
overview_uploader?.setOnClickListener { activity?.let { OKDialog.show(it, resourceHelper.gs(R.string.uploader), nsDeviceStatus.extendedUploaderStatus) } }
// Sensitivity
if (sp.getBoolean(R.string.key_openapsama_useautosens, false)) {
if (sp.getBoolean(R.string.key_openapsama_useautosens, false) && constraintChecker.isAutosensModeEnabled().value()) {
overview_sensitivity_icon.setImageResource(R.drawable.ic_swap_vert_black_48dp_green)
}else {
overview_sensitivity_icon.setImageResource(R.drawable.ic_x_swap_vert_48px_green)