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