-
Notifications
You must be signed in to change notification settings - Fork 148
Closed
Labels
Description
Step 1: Are you in the right place?
- I have verified there are no duplicate active or recent bugs, questions, or requests
- I have verified that I am using the latest version of the library.
Step 2: Describe your environment
- Library version:
3.2.0 - Android version:
10 - Support library version:
com.google.android.material:material:1.3.0 - Device brand:
OnePlus - Device model:
7 Pro
(Also tested not working on a Xiaomi device)
Step 3: Describe the problem:
Steps to reproduce:
setContentDescriptiononSpeedDialView- use
new SpeedDialActionItem.Builder()as before (unchanged) - Run app and it crashes due to stack overflow by
setContentDescriptioncalling itself too many times - Removing the setContentDescription line works, but the icons on the FAB are missing
Relevant Code:
SpeedDialView speedDialView = findViewById(R.id.speedDial1);
speedDialView.setContentDescription(getString(R.string.menu_fab_description));
speedDialView.addActionItem(
new SpeedDialActionItem
.Builder(R.id.fab_justnow, R.drawable.ic_done_black_24dp)
.setFabBackgroundColor(getResources().getColor(R.color.colorAccent))
.setContentDescription(R.string.menu_justnow)
.setLabel(R.string.menu_justnow)
.create()); java.lang.StackOverflowError: stack size 8192KB
at com.leinardi.android.speeddial.SpeedDialView.setContentDescription(SpeedDialView.java:240)
at com.leinardi.android.speeddial.SpeedDialView.setContentDescription(SpeedDialView.java:242)
at com.leinardi.android.speeddial.SpeedDialView.setContentDescription(SpeedDialView.java:242)
at com.leinardi.android.speeddial.SpeedDialView.setContentDescription(SpeedDialView.java:242)
...