mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-04 09:47:58 +01:00
Apply IME insets on scroll view
This commit is contained in:
parent
f183cda73d
commit
119a476b4e
@ -119,7 +119,8 @@
|
||||
android:configChanges="orientation"
|
||||
android:exported="true"
|
||||
android:parentActivityName=".activities.MainActivity"
|
||||
android:theme="@style/TranslucentTheme">
|
||||
android:theme="@style/TranslucentTheme"
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.EDIT" />
|
||||
|
@ -22,6 +22,7 @@ import android.widget.ImageView
|
||||
import android.widget.RelativeLayout
|
||||
import android.widget.TextView
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.core.view.WindowInsetsCompat
|
||||
import com.simplemobiletools.commons.dialogs.ConfirmationAdvancedDialog
|
||||
import com.simplemobiletools.commons.dialogs.RadioGroupDialog
|
||||
import com.simplemobiletools.commons.dialogs.SelectAlarmSoundDialog
|
||||
@ -83,6 +84,12 @@ class EditContactActivity : ContactActivity() {
|
||||
}
|
||||
|
||||
contact_wrapper.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|
||||
onApplyWindowInsets {
|
||||
val insets = it.getInsets(WindowInsetsCompat.Type.ime())
|
||||
contact_scrollview.run {
|
||||
setPadding(paddingLeft, paddingTop, paddingRight, insets.bottom)
|
||||
}
|
||||
}
|
||||
setupMenu()
|
||||
|
||||
val action = intent.action
|
||||
|
Loading…
x
Reference in New Issue
Block a user