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

Checkmark widget (update) does not work in Android 13 #1463

Closed
anandzol opened this issue Aug 17, 2022 · 11 comments
Closed

Checkmark widget (update) does not work in Android 13 #1463

anandzol opened this issue Aug 17, 2022 · 11 comments
Assignees
Labels
bug Something is not behaving as the developers expected confirmed The developers have been able to confirm that the issue is valid

Comments

@anandzol
Copy link

I use the checkmark widget to update my daily habit updates. After installing Android 13 update, I can't update the status directly from the widget in my home screen anymore. I can update them directly from app though and this gets reflected back in widget.

OS : Android 13
Build: TP1A.220624.021
Device: Google Pixel 6

@hiqua
Copy link
Collaborator

hiqua commented Aug 20, 2022

I can confirm, on the 2.1.0 prerelease.

@hiqua hiqua added bug Something is not behaving as the developers expected confirmed The developers have been able to confirm that the issue is valid labels Aug 20, 2022
@hiqua hiqua mentioned this issue Aug 20, 2022
10 tasks
@iSoron
Copy link
Owner

iSoron commented Aug 21, 2022

@hiqua I can't reproduce this in the emulator. Is there anything in the logcat?

@hiqua hiqua self-assigned this Aug 21, 2022
@hiqua
Copy link
Collaborator

hiqua commented Aug 21, 2022

Actually it seems to be mostly stacked habits, I can no longer reproduce it with a single habit on my phone. Same for you @anandzol ?

For single habits, when I press, I get these:

08-21 10:36:18.971  8255  8255 I WidgetReceiver: Received intent: Intent { act=org.isoron.uhabits.ACTION_TOGGLE_REPETITION dat=content://org.isoron.uhabits/... flg=0x10000010 cmp=org.isoron.uhabits/.receivers.WidgetReceiver }
08-21 10:36:18.971  8255  8255 D WidgetReceiver: onToggleRepetition habit=33 timestamp=1661040000000

but nothing with stacked habits.

I could not reproduce this in the emulator either.

@hiqua hiqua removed their assignment Aug 21, 2022
@hiqua
Copy link
Collaborator

hiqua commented Aug 22, 2022

@iSoron it's actually reproducible, just make sure you selected the API 33.

With Pixel 6 Pro API 33:

simplescreenrecorder-2022-08-22_08.05.45.mp4

@iSoron
Copy link
Owner

iSoron commented Aug 22, 2022

Thanks, I was able to reproduce it. The issue is that we are using setOnClickPendingIntent on StackView instead of setPendingIntentTemplate and setOnClickFillInIntent.

@iSoron iSoron self-assigned this Aug 22, 2022
iSoron added a commit that referenced this issue Sep 3, 2022
iSoron added a commit that referenced this issue Sep 3, 2022
@iSoron iSoron mentioned this issue Sep 3, 2022
@iSoron
Copy link
Owner

iSoron commented Sep 4, 2022

Fixed in #1488

@iSoron iSoron closed this as completed Sep 4, 2022
@hiqua
Copy link
Collaborator

hiqua commented Sep 11, 2022

@iSoron should we reopen this? Or did you manage to fix it completely?

@iSoron
Copy link
Owner

iSoron commented Sep 11, 2022

This should be fixed.

@Khyta
Copy link

Khyta commented Sep 20, 2022

I can confirm that clicking on the widget opens the Habit app, but after closing the Habit app, the widgets are invisible. You can get the widgets to be visible again after swiping on them to circle through.

Screenshot_20220920-073047
Screenshot_20220920-073035

@eegriffiths
Copy link

Seeing the same behavior as above and stacked widgets do not allow me up update habits (Samsung Galaxy 22 Ultra)

@sstewart122
Copy link

I emailed earlier today. I also have this issue. When I jave a stacked checklist nothing happens when I click to mark a habit. It does open the app nor check it off. If I only have one habit, so not stacked, it works and will check it off. I also have Android system 13, on a Samsung S22. I have version 2.0.3 of the app. Can't find a way to update to something newer or how to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not behaving as the developers expected confirmed The developers have been able to confirm that the issue is valid
Projects
None yet
Development

No branches or pull requests

6 participants