mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Disable hardware acceleration and keyboard animation
This is a temporary commit to see if it fixes issue #3364
This commit is contained in:
parent
3e04a1f036
commit
2ae3954422
6 changed files with 3 additions and 6 deletions
|
|
@ -100,8 +100,9 @@
|
|||
android:name=".upload.UploadActivity"
|
||||
android:configChanges="orientation|screenSize|keyboard"
|
||||
android:exported="true"
|
||||
android:hardwareAccelerated="false"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
android:windowSoftInputMode="adjustPan">
|
||||
<intent-filter android:label="@string/intent_share_upload_label">
|
||||
<action android:name="android.intent.action.SEND" />
|
||||
|
||||
|
|
|
|||
|
|
@ -89,7 +89,6 @@ class LoginActivity : AccountAuthenticatorActivity() {
|
|||
|
||||
binding = ActivityLoginBinding.inflate(layoutInflater)
|
||||
applyEdgeToEdgeAllInsets(binding!!.root)
|
||||
binding?.aboutPrivacyPolicy?.handleKeyboardInsets()
|
||||
with(binding!!) {
|
||||
setContentView(root)
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,6 @@ class UploadCategoriesFragment : UploadBaseFragment(), CategoriesContract.View {
|
|||
savedInstanceState: Bundle?
|
||||
): View? {
|
||||
binding = UploadCategoriesFragmentBinding.inflate(inflater, container, false)
|
||||
binding!!.llContainerButtons.handleKeyboardInsets()
|
||||
return binding!!.root
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,6 @@ class DepictsFragment : UploadBaseFragment(), DepictsContract.View {
|
|||
savedInstanceState: Bundle?
|
||||
): View {
|
||||
_binding = UploadDepictsFragmentBinding.inflate(inflater, container, false)
|
||||
_binding!!.navigationButtonsContainer.handleKeyboardInsets()
|
||||
return binding.root
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -146,7 +146,6 @@ class UploadMediaDetailFragment : UploadBaseFragment(), UploadMediaDetailsContra
|
|||
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?
|
||||
): View {
|
||||
_binding = FragmentUploadMediaDetailFragmentBinding.inflate(inflater, container, false)
|
||||
_binding!!.mediaDetailCardView.handleKeyboardInsets()
|
||||
// intialise the adapter early to prevent uninitialized access
|
||||
uploadMediaDetailAdapter = UploadMediaDetailAdapter(
|
||||
this,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package fr.free.nrw.commons.utils
|
||||
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.view.ViewGroup.MarginLayoutParams
|
||||
import androidx.core.view.ViewCompat
|
||||
import androidx.core.view.WindowInsetsAnimationCompat
|
||||
|
|
@ -157,7 +158,6 @@ fun applyEdgeToEdgeBottomInsets(view: View) = view.applyEdgeToEdgeInsets { inset
|
|||
rightMargin = insets.right
|
||||
bottomMargin = insets.bottom
|
||||
}
|
||||
|
||||
/**
|
||||
* Adjusts a [View]'s bottom margin dynamically to account for the on-screen keyboard (IME),
|
||||
* ensuring the view remains visible above the keyboard during transitions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue