Describe the bug
The Android home screen widgets "Two Buttons" (TwoEntry) and "Two Actions (Last)" (TwoEntryLast) display identical content. Both widgets show the first 2 buttons from the user's configured button order.
Root cause
In TwoEntryLast.kt, the button order is fetched with:
val buttonOrder = FlowWidgetUtils.getButtonOrder(currentState.preferences).subList(0, 2)
This is the exact same line as in TwoEntry.kt:
val buttonOrder = FlowWidgetUtils.getButtonOrder(currentState.preferences).subList(0, 2)
TwoEntryLast should likely take the last 2 buttons from the order instead.
Steps to reproduce
- Add both "Two Buttons" and "Two Actions (Last)" widgets to the Android home screen
- Observe that they display the same icons/buttons
Expected behavior
- Two Buttons → first 2 buttons from the order (e.g., transfer + income)
- Two Actions (Last) → last 2 buttons from the order (e.g., income + expense)
Platform
Android (Jetpack Glance widgets)
Additional context
With default button order ["transfer", "income", "expense"] (Eny disabled), both widgets show ["transfer", "income"] instead of one showing the first pair and the other showing the last pair.
Describe the bug
The Android home screen widgets "Two Buttons" (
TwoEntry) and "Two Actions (Last)" (TwoEntryLast) display identical content. Both widgets show the first 2 buttons from the user's configured button order.Root cause
In
TwoEntryLast.kt, the button order is fetched with:This is the exact same line as in
TwoEntry.kt:TwoEntryLastshould likely take the last 2 buttons from the order instead.Steps to reproduce
Expected behavior
Platform
Android (Jetpack Glance widgets)
Additional context
With default button order
["transfer", "income", "expense"](Eny disabled), both widgets show["transfer", "income"]instead of one showing the first pair and the other showing the last pair.