1
0
Fork 0
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:
Evgenii Kozlov 2021-10-07 14:33:19 +03:00 committed by GitHub
parent eb1834c015
commit 59cda19c99
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 13 deletions

View file

@ -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() {

View file

@ -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'