Skip to content

[BUG] Android "Two Actions (Last)" widget is identical to "Two Buttons" — both show the same first 2 buttons #697

@PawiX25

Description

@PawiX25

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

  1. Add both "Two Buttons" and "Two Actions (Last)" widgets to the Android home screen
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions