You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
App freezes when i'm calling dismiss() function from dialog which built with MaterialAlertDialogBuilder. In case of AlertDialog.Builder() it's okay. Also somehow problem appears only in debug build, while in release it works fine.
In the moment of dismissing android system (not app) throw this excpetion:
Uncaught remote exception! (Exceptions are not yet supported across processes.)
java.lang.RuntimeException: Unknown animation name: pathInterpolator
at android.view.animation.AnimationUtils.createAnimationFromXml(AnimationUtils.java:194)
at android.view.animation.AnimationUtils.createAnimationFromXml(AnimationUtils.java:158)
at android.view.animation.AnimationUtils.loadAnimation(AnimationUtils.java:139)
at com.android.server.wm.AppTransition.loadAnimationSafely(AppTransition.java:644)
at com.android.server.wm.AppTransition.loadAnimationAttr(AppTransition.java:614)
at com.android.server.wm.WindowStateAnimator.applyAnimationLocked(WindowStateAnimator.java:1467)
at com.android.server.wm.WindowState.removeIfPossible(WindowState.java:2315)
at com.android.server.wm.WindowState.removeIfPossible(WindowState.java:2236)
at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:1928)
at com.android.server.wm.Session.remove(Session.java:193)
at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:782)
at com.android.server.wm.Session.onTransact(Session.java:139)
at android.os.Binder.execTransactInternal(Binder.java:1154)
at android.os.Binder.execTransact(Binder.java:1123)
Expected behavior:
The dialog window should be closed
Source code:
private fun showLayerDialog() {
val builder = MaterialAlertDialogBuilder(this)
val geometryLayers = LayersManager.mmLayerList.filterIsInstance<GeometryObjectsLayer>()
val namesArray = geometryLayers.map { it.name }
val selectedElementPosition: Int = geometryLayers.indexOf(getCurrentSelectedLayer())
builder
.setTitle(getString(R.string.current_active_layer))
.setCancelable(false)
.setPositiveButton(R.string.ok) { dialog, _ ->
dialog.dismiss()
}
.setSingleChoiceItems(
namesArray.toTypedArray(), selectedElementPosition
) { _, which ->
geometryLayers.forEachIndexed { position, layer ->
layer.currentSelected = position == which
}
}.show()
}
Just trying to isolate the problem. I think it might be coming from an issue parsing the interpolator being used for our dialogs.
Hi, For some reason I couldn't reproduce the bug. I had previously changed the MaterialBuilderDialog to AlertDialog.Builder to fix the issue, but now that I've changed it back the issue doesn't appear. So I can't say whether your suggestion will help or not.
Description:
App freezes when i'm calling dismiss() function from dialog which built with MaterialAlertDialogBuilder. In case of AlertDialog.Builder() it's okay. Also somehow problem appears only in debug build, while in release it works fine.
In the moment of dismissing android system (not app) throw this excpetion:
Expected behavior:
The dialog window should be closed
Source code:
gradle code:
proguard rules:
Minimal sample app repro:
Unfortunaly can't provide any sample
Android API version:
api ver. 30
Material Library version:
lib ver. 1.12.0
Device:
Lenovo TB-X306X
The text was updated successfully, but these errors were encountered: