Remove obsolete SDK_INT check

This commit is contained in:
vvb2060
2021-04-22 00:41:42 +08:00
committed by John Wu
parent 0db405f2cc
commit fb93af665d
10 changed files with 46 additions and 163 deletions
@@ -26,9 +26,7 @@ open class LayoutInflaterFactory(private val delegate: AppCompatDelegate) : Layo
open fun onViewCreated(view: View?, parent: View?, name: String, context: Context, attrs: AttributeSet) {
if (view == null) return
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
WindowInsetsHelper.attach(view, attrs)
}
WindowInsetsHelper.attach(view, attrs)
}
}
@@ -85,4 +83,4 @@ private object LayoutInflaterFactoryDefaultImpl {
null
}
}
}
}
@@ -59,7 +59,7 @@ class SettingsViewModel(
))
if (Info.env.isActive) {
list.add(ClearRepoCache)
if (Build.VERSION.SDK_INT >= 21 && Const.USER_ID == 0) {
if (Const.USER_ID == 0) {
if (hidden)
list.add(Restore)
else if (Info.isConnected.get())