Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LinearProgressIndicator] Stops after standby and is no longer animated #4614

Open
michael-winkler opened this issue Feb 20, 2025 · 2 comments

Comments

@michael-winkler
Copy link
Contributor

Description:

I have a LinearProgressIndicator in a dialog with indeterminate set to true.
The dialog opens, and the progress indicator works correctly.
Now, I put the phone into standby using the lock button.
When I unlock the phone and see the dialog again, the progress indicator is no longer animated.

Expected behavior:
I expect it to continue working even after returning from standby and seeing the dialog again.

Source code:

<com.google.android.material.progressindicator.LinearProgressIndicator
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="@dimen/margin_8"
    android:indeterminate="true"/>

Minimal sample app repro:
-

Android API version:
I think all

Material Library version:
com.google.android.material:material:1.13.0-alpha10

Device:
I think all

@manabu-nakamura
Copy link
Contributor

Do you use DialogFragments?
Test12.zip

@michael-winkler
Copy link
Contributor Author

michael-winkler commented Feb 20, 2025

I use an MaterialAlertDialog:

fun show() {
    val binding = DialogLadenBinding.inflate(LayoutInflater.from(activity))
    with(binding) {
        MaterialAlertDialogBuilder(activity, R.style.DialogRoundTheme).create()
        .apply {
            setView(root)
            setCancelable(false)
            show()
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants