Fixed
Status Update
Comments
ha...@gmail.com <ha...@gmail.com> #2
Here's another log file from the real development project, reproduced using the method with 1-finger touch described above.
al...@android.com <al...@android.com>
au...@google.com <au...@google.com> #3
Thanks for the bug report. I was able to repro and I have a fix in review.
ha...@gmail.com <ha...@gmail.com> #4
Great! Do you know in which version it'll be updated/fixed and available for download?
au...@google.com <au...@google.com> #5
The fix is still in review. We will update this bug once the fix lands.
ha...@gmail.com <ha...@gmail.com> #7
I just checked with the com.android.support:design:23.3.0 library, and it doesn't crash any more but the bug is still there, resulting the UI issue described in my initial post above (i.e. the snackbar doesn't come back to its original position).
In the official page of Support Library (http://developer.android.com/tools/support-library/index.html ) it's mentioned that you've fixed the crash issue but nothing about the ugly UI bug. Was it so hard or you guys just overlooked/ignored it?
In the official page of Support Library (
au...@google.com <au...@google.com> #8
chrisbanes@ you marked internal bug as closed. Is this fixed in 23.3.0?
ha...@gmail.com <ha...@gmail.com> #10
Indeed what, yes or no? Please clearly confirm if the bug is officially fixed or you can't reproduce it.
Description
Version used: 23.0.1 and 23.2.1
Theme used: default
Devices/Android versions reproduced on: Marshmallow
- Relevant code to trigger the issue:
//in the onCreate() function
Snackbar snackbar = Snackbar
.make(findViewById(R.id.coordinator_layout), "Good morning!", Snackbar.LENGTH_INDEFINITE)
.setText("Hello")
.setActionTextColor(Color.RED)
.setAction("OK!", new View.OnClickListener() {
@Override
public void onClick(View view) {
}
});
snackbar.show();
//in the activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="
android:id="@+id/coordinator_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
</android.support.design.widget.CoordinatorLayout>
- A screenrecord or screenshots showing the issue (if UI related).
Attached.
- Description to reproduce:
There are 2 ways to reproduce this bug/issue:
1. with one finger/touch - slide the snackbar a bit right so it's not greyed out to make sure it'll come back, and quickly release and touch again the snackbar. Now it'll be stack like in the screenshot attached and will not go back to its initial position, until screen redraw.
2. with 2 finger/touch - slide the snackbar a bit right with one finger, and then touch it with the second finger, then release the first finger, then the second finger.
While doing this with the line "compile 'com.android.support:design:23.0.1'" in gradle build file it's just a UI issue, but with the lib 23.2.1 it's crashing the app. Crash logs are attached for both reproducible cases mentioned above.