1
0
mirror of https://github.com/etesync/android synced 2025-01-03 12:21:01 +00:00

Fix "Potential vendor bugs" dialog constantly showing.

Fixes #165.
This commit is contained in:
Tom Hacohen 2020-12-13 20:28:49 +02:00
parent 662a2eef1f
commit 0c29eebb86

View File

@ -94,7 +94,7 @@ class StartupDialogFragment : DialogFragment() {
// Vendor specific bugs
val manu = Build.MANUFACTURER
if (!HintManager.getHintSeen(context, HINT_BATTERY_OPTIMIZATIONS) && (manu.equals("Xiaomi", ignoreCase = true) || manu.equals("Huawei", ignoreCase = true)) && !Build.DISPLAY.contains("lineage")) {
if (!HintManager.getHintSeen(context, HINT_VENDOR_SPECIFIC_BUGS) && (manu.equals("Xiaomi", ignoreCase = true) || manu.equals("Huawei", ignoreCase = true)) && !Build.DISPLAY.contains("lineage")) {
dialogs.add(StartupDialogFragment.instantiate(Mode.VENDOR_SPECIFIC_BUGS))
}