Closed
Bug 770345
Opened 14 years ago
Closed 14 years ago
Changing orientation with preference dialog open prevents preference from being set
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox13 affected, firefox14 affected, firefox15 verified, firefox16 verified, blocking-fennec1.0 -, fennec15+)
VERIFIED
FIXED
Firefox 16
People
(Reporter: mcomella, Assigned: mcomella)
References
Details
Attachments
(1 file, 1 obsolete file)
|
2.68 KB,
patch
|
sriram
:
review+
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
1) Open Fennec.
2) Click the more options menu (three horizontal lines)
3) Scroll down and select "Settings".
4) On the preferences screen, select "Text Size".
5) Rotate the device so the orientation changes.
6) Click "Small".
Expected: The dialog disappears and "Small", the selected option, is selected in the preferences screen.
Result: The dialog disappears, but the previous option ("Medium" on the default installation) is still selected.
Note that this applies to more complex dialogs as well such as the "Clear private data" checkbox dialog (Nightly only) - I will make another bug for this as there are more issues.
Tested on Galaxy Nexus, Android 4.0.4, and Asus Transformer Prime TF201, Android 4.0.3.
| Assignee | ||
Comment 1•14 years ago
|
||
Added the "See also" bug for the PrivateDataPreferences (clear browsing data) dialog.
See Also: → 770351
| Assignee | ||
Updated•14 years ago
|
status-firefox13:
--- → affected
status-firefox14:
--- → affected
status-firefox15:
--- → affected
status-firefox16:
--- → affected
Version: Firefox 16 → Firefox 13
| Assignee | ||
Comment 2•14 years ago
|
||
Added another rotation bug for the AndroidImportPreference dialog.
See Also: → 770355
| Assignee | ||
Comment 3•14 years ago
|
||
Rotation bug for the master password preference dialog.
See Also: → 770358
Comment 4•14 years ago
|
||
I can reproduce on my Galaxy Nexus (Android 4.1)
This is dumb.
blocking-fennec1.0: --- → ?
Updated•14 years ago
|
tracking-fennec: --- → 15+
blocking-fennec1.0: ? → -
| Assignee | ||
Comment 5•14 years ago
|
||
This (and the other rotation bugs) can be fixed by not recreating the activity on orientation change. As we do not use alternate layouts on the Preference screen, I think this is an okay solution (rather than adding the more lengthy but traditional onSaveInstance(...) code). If you disagree, please let me know.
I have (and tested) the code needed to do this, however, I need to fix up my patch queue to get the patch out - I will upload it when I am done.
Assignee: nobody → michael.l.comella
Status: NEW → ASSIGNED
Comment 6•14 years ago
|
||
Sounds like this will fix will also address bug 717307 where the instance count is doubled on rotation.
| Assignee | ||
Comment 7•14 years ago
|
||
This test passed mochitest-robotium locally and was tested by hand on both a Galaxy Nexus, Android 4.0.4, and Asus Transformer Prime TF201, Android 4.0.3.
This patch also fixes several other bugs:
Bug 770351
Bug 770355 (though the code will be replaced with another patch - see the bug for details)
Bug 770358
I will look into bug 717307 to see if it fixes that as well.
| Assignee | ||
Comment 8•14 years ago
|
||
Bug 717307 still occurs:
0) Run "adb logcat -v time | grep -i geckopreferences" for your device.
1) Open Fennec.
2) Click the menu bar; Select "Settings"
3) Hit the back button
Expected: No strict mode instance count violation.
Actual:
"07-06 19:32:15.479 E/StrictMode(30095): class org.mozilla.gecko.GeckoPreferences; instances=2; limit=1
07-06 19:32:15.479 E/StrictMode(30095): android.os.StrictMode$InstanceCountViolation: class org.mozilla.gecko.GeckoPreferences; instances=2; limit=1"
---
Does not seem to be related to orientation change unfortunately.
Comment 9•14 years ago
|
||
Comment on attachment 639898 [details] [diff] [review]
Patch
Sriram had looked into the orientation issues with GeckoApp, so I'd like to get his feedback on the changes for GeckoPreferences.
Attachment #639898 -
Flags: feedback?(sriram)
| Assignee | ||
Comment 10•14 years ago
|
||
Sriram pointed out to me what to change but I suppose it would be good for him to specifically look at the patch as well.
Comment 11•14 years ago
|
||
Comment on attachment 639898 [details] [diff] [review]
Patch
Review of attachment 639898 [details] [diff] [review]:
-----------------------------------------------------------------
I was kind of dictacting the code ;)
This looks good to me.
Please make sure " {} " are as per other parts of code in the file.
Attachment #639898 -
Flags: feedback?(sriram) → feedback+
| Assignee | ||
Comment 12•14 years ago
|
||
Fixed the braces.
Attachment #639898 -
Attachment is obsolete: true
| Assignee | ||
Updated•14 years ago
|
Attachment #639972 -
Flags: review?(sriram)
Comment 13•14 years ago
|
||
Comment on attachment 639972 [details] [diff] [review]
Updated patch
Review of attachment 639972 [details] [diff] [review]:
-----------------------------------------------------------------
This looks good to me.
Probably you need to see if there is anything that can be cleaned up -- like storing in bundle and taking it back -- as this removes the need for that extra step.
Please post a separate patch if you find anything that could be cleanup up.
Attachment #639972 -
Flags: review?(sriram) → review+
| Assignee | ||
Comment 14•14 years ago
|
||
Besides some unused imports (bug 772527), I could not find anything.
Keywords: checkin-needed
Comment 15•14 years ago
|
||
Flags: in-testsuite-
Keywords: checkin-needed
Comment 16•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 16
Updated•14 years ago
|
status-firefox16:
affected → ---
Comment 19•14 years ago
|
||
Aurora/Beta nom?
Updated•14 years ago
|
| Assignee | ||
Comment 20•14 years ago
|
||
Comment on attachment 639972 [details] [diff] [review]
Updated patch
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Unknown.
User impact if declined: Users who change orientation within the preferences activity with a settings dialog open and then try to set the setting will not be able to until they close the dialog, reopen it, and try again. Oftentimes, users will not notice the setting did not change.
Testing completed (on m-c, etc.): Landed on m-c on 7/10.
Risk to taking this patch (and alternatives if risky): Low risk.
String or UUID changes made by this patch: None.
Attachment #639972 -
Flags: approval-mozilla-beta?
Attachment #639972 -
Flags: approval-mozilla-aurora?
Comment 21•14 years ago
|
||
Comment on attachment 639972 [details] [diff] [review]
Updated patch
low risk, still early enough in beta to take this - approving.
Attachment #639972 -
Flags: approval-mozilla-beta?
Attachment #639972 -
Flags: approval-mozilla-beta+
Attachment #639972 -
Flags: approval-mozilla-aurora?
Attachment #639972 -
Flags: approval-mozilla-aurora+
Comment 23•14 years ago
|
||
This landed on m-c when it was still Firefox 16 (see the target milestone), hence it's already on Aurora.
https://hg.mozilla.org/releases/mozilla-beta/rev/fe218b1f8f24
Updated•14 years ago
|
Status: RESOLVED → VERIFIED
Comment 24•14 years ago
|
||
Unable to reproduce the issue described in comment 0 on:
Firefox Mobile 16.0b5
Samsung Galaxy R (Android 2.3.4)
Marking as verified on Firefox Mobile 16
Updated•14 years ago
|
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•