Closed Bug 1961593 Opened 1 year ago Closed 1 year ago

[DoH on Android] DoH settings page toolbar is inconsistent

Categories

(Firefox for Android :: Settings, defect)

All
Android
defect

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: michel, Assigned: valentin)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Steps to reproduce

  1. Go to settings -> about Firefox
  2. Tap the logo 5 times
  3. Go back to settings and in the hidden settings category that now appeard, enable DoH settings
  4. Go back again to settings and enter the DNS over HTTPS screen

Expected behavior

The DoH settings page animation and spacing should be consistent with other settings screens

Actual behavior

When entering the DoH settings screen, the top bar is replaced in the animation. When entering other settings screens, the top bar is kept and only its title is changed.

The spacing between the top bar and the screen content is much smaller than in other settings screens.

Device information

  • Firefox version: 139
  • Android device model: Sony Xperia 5 V
  • Android OS version: 15

Any additional information?

Blocks: 1801530
Assignee: nobody → michel

Is there a reason why the DoH settings screen has it's own toolbar instead of reusing and updating the existing one with:

override fun onResume() {
    super.onResume()
    showToolbar(getString(R.string.preference_doh_title))
}

like it's done in all other setting fragments?

Flags: needinfo?(sekim)

(In reply to Michel Le Bihan from comment #1)

Is there a reason why the DoH settings screen has it's own toolbar instead of reusing and updating the existing one with:

override fun onResume() {
    super.onResume()
    showToolbar(getString(R.string.preference_doh_title))
}

like it's done in all other setting fragments?

Great catch, it should be updated using the existing one.

Flags: needinfo?(sekim)
Flags: needinfo?(sekim)
Flags: needinfo?(sekim)

Oops my bad, I didn't check the ASSIGNED. I will abandon my revision, please feel free to reference my code.

Attachment #9480465 - Attachment is obsolete: true

That's OK. I haven't done it yet. Please keep it.

Attachment #9480465 - Attachment is obsolete: false
Assignee: michel → sekim

Why is the spacing on the left side of the radio buttons so large? In the HTTPS only mode screen it's much smaller, however it's the same as in the advanced tracking protection screen.

Flags: needinfo?(sekim)

(In reply to Michel Le Bihan from comment #6)

Why is the spacing on the left side of the radio buttons so large? In the HTTPS only mode screen it's much smaller, however it's the same as in the advanced tracking protection screen.

Seems like we aren't using Jetpack Compose for HTTPS Only (hence it isn't really one-to-one). I will double check if there are discrepancies in the paddings. Could you kindly file a new bug for this issue?

Flags: needinfo?(sekim)

Could you kindly file a new bug for this issue?

You mean that it's incorrect in the HTTPS only screen?

Flags: needinfo?(sekim)

(In reply to Michel Le Bihan from comment #8)

Could you kindly file a new bug for this issue?

You mean that it's incorrect in the HTTPS only screen?

I think it should match the HTTPS only screen (DoH is probably incorrect).

Flags: needinfo?(sekim)

This is where we set the radio buttons.

We import org.mozilla.fenix.compose.button.RadioButton, so I don't think it is necessarily incorrect. Segun, would this be an issue?

Flags: needinfo?(sfamisa)

(In reply to Michel Le Bihan from comment #6)

Why is the spacing on the left side of the radio buttons so large? In the HTTPS only mode screen it's much smaller, however it's the same as in the advanced tracking protection screen.

The spacing on the DoH screen is exactly as designed. And as you rightly noticed, the Enhanced Tracking Protection screen has similar spacing as the DoH screen.

(In reply to Sean Kim from comment #9)

(In reply to Michel Le Bihan from comment #8)

Could you kindly file a new bug for this issue?

You mean that it's incorrect in the HTTPS only screen?

I think it should match the HTTPS only screen (DoH is probably incorrect).

I can't comment on why the HTTPS-Only screen is different, but as far as I know, the spacing is not a bug or incorrect, but rather, by design.

I can try to find out why it's different.

Flags: needinfo?(sfamisa)

I reported https://bugzilla.mozilla.org/show_bug.cgi?id=1962221.

Another thing that I noticed is that the spacing between the globe and the Exceptions text is much larger tin the Advanced tracking protection screen than it is in DoH settings. However, the former one seems way too large.

Summary: DoH settings page is inconsistent → DoH settings page toolbar is inconsistent
See Also: → 1962221
Summary: DoH settings page toolbar is inconsistent → [DoH on Android] DoH settings page toolbar is inconsistent

Unassigned myself, please feel free to take the patches and land them after review!

Assignee: sekim → nobody
Attachment #9480465 - Attachment is obsolete: true
Assignee: nobody → valentin.gosu
Attachment #9480465 - Attachment is obsolete: false
Status: NEW → ASSIGNED

The severity field is not set for this bug.
:royang, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(royang)
Severity: -- → S3
Flags: needinfo?(royang)
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/a9c1b731e886 Reuse and update the existing toolbar in DoH on Fenix r=sfamisa,android-reviewers,android-l10n-reviewers,delphine https://hg.mozilla.org/integration/autoland/rev/5af57149327b Make the DohSettingsScreend and ExceptionsListScreen scrollable r=sfamisa,android-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: