Fix AlertDialogs

This commit is contained in:
Zakhar Timoshenko
2022-01-17 09:26:54 +03:00
parent eed8ef7010
commit 097e040dd6
13 changed files with 24 additions and 21 deletions

View File

@@ -34,7 +34,7 @@ abstract class BaseBottomSheet<B : ViewBinding> :
}
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
return if (resources.getBoolean(R.bool.isTablet)) {
return if (resources.getBoolean(R.bool.is_tablet)) {
AppCompatDialog(context, theme)
} else super.onCreateDialog(savedInstanceState)
}

View File

@@ -60,7 +60,7 @@ class PagesThumbnailsSheet : BaseBottomSheet<SheetPagesBinding>(),
binding.toolbar.setNavigationOnClickListener { dismiss() }
binding.toolbar.subtitle = null
if (!resources.getBoolean(R.bool.isTablet)) {
if (!resources.getBoolean(R.bool.is_tablet)) {
binding.toolbar.navigationIcon = null
} else {
binding.toolbar.subtitle =