mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Merge pull request #4104 from abaker/fix_settings_missing_accelerometer
Fix settings crash when accelerometer unavailable
This commit is contained in:
commit
7c2fac39f4
1
changelog.d/4103.bugfix
Normal file
1
changelog.d/4103.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix settings crash when accelerometer not available
|
@ -20,6 +20,7 @@ import androidx.preference.Preference
|
||||
import androidx.preference.SeekBarPreference
|
||||
import im.vector.app.R
|
||||
import im.vector.app.core.platform.VectorBaseActivity
|
||||
import im.vector.app.core.preference.VectorPreferenceCategory
|
||||
import im.vector.app.core.preference.VectorSwitchPreference
|
||||
import im.vector.app.features.rageshake.RageShake
|
||||
|
||||
@ -72,7 +73,7 @@ class VectorSettingsAdvancedSettingsFragment : VectorSettingsBaseFragment() {
|
||||
true
|
||||
}
|
||||
} else {
|
||||
findPreference<VectorSwitchPreference>("SETTINGS_RAGE_SHAKE_CATEGORY_KEY")!!.isVisible = false
|
||||
findPreference<VectorPreferenceCategory>("SETTINGS_RAGE_SHAKE_CATEGORY_KEY")!!.isVisible = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user