mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
App | Revert | Back to api 29 (#1842)
This commit is contained in:
parent
eb1834c015
commit
59cda19c99
2 changed files with 15 additions and 13 deletions
|
@ -1341,16 +1341,18 @@ open class EditorFragment : NavigationFragment(R.layout.fragment_editor),
|
|||
}
|
||||
|
||||
private fun proceedWithHidingSoftInput() {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
||||
val controller = root.windowInsetsController
|
||||
if (controller != null) {
|
||||
controller.hide(WindowInsetsCompat.Type.ime())
|
||||
} else {
|
||||
hideSoftInput()
|
||||
}
|
||||
} else {
|
||||
hideSoftInput()
|
||||
}
|
||||
// TODO enable when switching to API 30
|
||||
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
||||
// val controller = root.windowInsetsController
|
||||
// if (controller != null) {
|
||||
// controller.hide(WindowInsetsCompat.Type.ime())
|
||||
// } else {
|
||||
// hideSoftInput()
|
||||
// }
|
||||
// } else {
|
||||
// hideSoftInput()
|
||||
// }
|
||||
hideSoftInput()
|
||||
}
|
||||
|
||||
private fun hideBlockActionPanel() {
|
||||
|
|
|
@ -3,12 +3,12 @@ apply from: './dependencies.gradle'
|
|||
buildscript {
|
||||
ext.kotlin_version = '1.5.21'
|
||||
ext.gradle_tools = '3.1.3'
|
||||
ext.build_tools = '30.0.3'
|
||||
ext.build_tools = '29.0.3'
|
||||
ext.nav_version = '2.3.0'
|
||||
ext.dokka_version = '1.4.32'
|
||||
|
||||
ext.compile_sdk = 30
|
||||
ext.target_sdk = 30
|
||||
ext.compile_sdk = 29
|
||||
ext.target_sdk = 29
|
||||
ext.min_sdk = 24
|
||||
|
||||
ext.application_id = 'com.anytypeio.anytype'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue