Opened on 08/05/2015 at 02:22:30 AM
Closed on 02/09/2017 at 09:13:43 PM
Last modified on 06/19/2017 at 08:10:45 AM
#2853 closed defect (fixed)
Settings changes are sometimes not saved if the user quits the app
Reported by: | Ross | Assignee: | diegocarloslima |
---|---|---|---|
Priority: | Unknown | Milestone: | Adblock-Browser-for-Android-1.2.0 |
Module: | Adblock-Browser-for-Android | Keywords: | |
Cc: | philll, fhd | Blocked By: | |
Blocking: | Platform: | Adblock Browser for Android | |
Ready: | no | Confidential: | no |
Tester: | Scheer | Verified working: | yes |
Review URL(s): |
Description (last modified by Ross)
Environment
Adblock Browser 1.0.0.20150520125137
LG Nexus 4 E960 / Android 5.1.1 (TestObject Device)
How to reproduce
- Start Adblock Browser.
- Select [Settings] > [Adblocking] > [Acceptable Ads].
- Uncheck the [Allow some ...] checkbox.
- Press [Back] in the header once, wait ~3-5 seconds.
- Press the hardware [Menu/Apps] key.
- Swipe the browser away to kill it.
- Restart the browser.
- Select [Settings] > [Adblocking] > [Acceptable Ads].
- Observe the [Allow some ...] checkbox is checked again (Unexcepted - Was unchecked at Step 3).
- Uncheck the [Allow some ...] checkbox.
- Back out of [Settings] to the browser.
- Wait a few seconds (5-10).
- Press the hardware [Menu/Apps] key.
- Swipe the browser away to kill it.
- Restart the browser.
- Select [Settings] > [Adblocking] > [Acceptable Ads].
- Observe the [Allow some ...] checkbox is checked (as expected).
- Try these steps again, changing the setting and then quitting at different times, then checking if the setting was saved.
Observed behaviour
Depending on when the user suspends, quits or kills the browser, the Acceptable Ads setting (and possibly other settings) are not saved and the value last selected by the user is not correctly restored on the next run.
Expected behaviour
The value last selected by user should be correctly saved and restored on the next run, regardless (sort of) on how they quit or leave the app.
Attachments (1)
Change History (8)
Changed on 08/05/2015 at 02:23:51 AM by Ross
comment:1 Changed on 08/05/2015 at 02:33:11 AM by Ross
- Description modified (diff)
comment:2 Changed on 08/18/2016 at 01:52:23 PM by diegocarloslima
- Owner set to diegocarloslima
comment:3 Changed on 08/23/2016 at 12:52:03 PM by diegocarloslima
- Review URL(s) modified (diff)
- Status changed from new to reviewing
comment:4 Changed on 01/02/2017 at 10:48:17 PM by diegocarloslima
- Milestone set to Adblock-Browser-for-Android-next
comment:5 Changed on 02/09/2017 at 09:12:27 PM by abpbot
A commit referencing this issue has landed:
Issue 2853 - Settings changes are sometimes not saved if the user quits the app
comment:6 Changed on 02/09/2017 at 09:13:43 PM by diegocarloslima
- Resolution set to fixed
- Status changed from reviewing to closed
comment:7 Changed on 06/19/2017 at 08:10:45 AM by scheer
- Tester changed from Ross to Scheer
- Verified working set
- In all of the above-given examples along with extra case testing here, I was unable to reproduce that the settings are no longer saved anymore. Each time I de-selected an option or setting, close the browser, waited, re-opened etc. the setting was always kept.
ABB adblockbrowser-1.1.1.20170612182010-arm
Galaxy S7
Android 7.0
So I know the initial reaction is "Well if you kill the browser before it saves the setting, of course the setting isn't saved" but it gives a terrible (imo) user experience and is really confusing. Sometimes the setting IS saved if you quit at a certain point. Sometimes the setting is NOT saved if you quit at a certain point.
How should/does saving the settings work? I thought it might be triggered either on each settings change or when the settings menu itself is left? Or that it is async? If so how long should it take?
The video I've attached shows an example of the issue (although it does not exactly match the steps). I could not reproduce this on my actual device, but can on several of the TestObject devices.