mirror of
https://github.com/whyorean/AuroraStore.git
synced 2026-04-24 17:02:28 -04:00
NetworkPreference: Only show microG login switch if supported
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -65,7 +65,7 @@ class NetworkPreference : BasePreferenceFragment() {
|
||||
}
|
||||
}
|
||||
|
||||
findPreference<SwitchPreferenceCompat>(PREFERENCE_MICROG_AUTH)?.isEnabled =
|
||||
findPreference<SwitchPreferenceCompat>(PREFERENCE_MICROG_AUTH)?.isVisible =
|
||||
PackageUtil.hasSupportedMicroGVariant(requireContext())
|
||||
}
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
app:defaultValue="true"
|
||||
app:disableDependentsState="false"
|
||||
app:iconSpaceReserved="false"
|
||||
app:isPreferenceVisible="false"
|
||||
app:key="PREFERENCE_MICROG_AUTH"
|
||||
app:summary="@string/pref_network_microg_login_desc"
|
||||
app:title="@string/pref_network_microg_login_title" />
|
||||
|
||||
Reference in New Issue
Block a user