wordpress-mobile / wordpress-mobile/WordPress-Android

Update Add New Site Dialog to AppCompatDialogFragment

Open
#8,376 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Status] Stale [Type] Enhancement Site Management
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

Expected

The Add New Site dialog is the same across all Android versions.

Observed

The Add New Site dialog is different across some Android versions. See the screenshots below for illustration.

site_picker_dialog

Note

One solution could be to update the AddSiteDialog inheritance from DialogFragment to AppCompatDialogFragment. This has not been verified, but should be tested.

Reproduced
  1. Use device running API 21.
  2. Go to My Site tab.
  3. Tap Switch Site button in top card view.
  4. Tap Add New Site action in top toolbar.
  5. Notice dialog is slightly scrollable with no bottom or top padding.
  6. Use device running API 25.
  7. Go to My Site tab.
  8. Tap Switch Site button in top card view.
  9. Tap Add New Site action in top toolbar.
  10. Notice dialog is not scrollable with bottom and top padding.
Tested

Google Pixel 2 on Android 5.1.1 with WordPress 10.9.1
Google Pixel 2 on Android 7.1.2 with WordPress 10.9.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the AddSiteDialog entry point and reproduce the Add New Site flow on API 21 and API 25 as described. Test whether changing its dialog implementation resolves the differing scrollability and top or bottom padding, and verify that the dialog appears consistently across both Android versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.