Closed Bug 1128092 Opened 9 years ago Closed 8 years ago

Use notifications with dynamic height for finishing pending Sync upgrade, too long/cropped in many locales

Categories

(Firefox :: Sync, defect)

ARM
Android
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: aryx, Unassigned, Mentored)

References

Details

(Whiteboard: [lang=java][good second bug])

Attachments

(1 file)

Firefox for Android, Aurora branch 20150130 (API 11 build), Android 4.1.2 on Nexus S (stock image)

Having a Firefox Sync 1.1 account on the device which gets migrated to 1.5 (Firefox accounts based) on a different device will show a notification to finish the upgrading of Sync on the Android device. The header and content of that notification gets cropped in many languages (e.g. German / "Deutsch") because the texts are too long. Please use such notifications which set the appropriate height, don't remember the name, but iirc supported since Android 4.0 and used by the data reporting notification.
Thanks for the report.  This is a great mentor ticket.

What needs to happen: at [1], we use the [2] NotificationCompat.Builder to make a notification.  We should try to use the BigTextStyle notification as well [3].  (We'll need to test against a pre-4.1 device to make sure we don't break things here.)  Hopefully we can use our existing messages with a big text notification.

See http://stackoverflow.com/a/13721315 and the link for more information.

[1] https://dxr.mozilla.org/mozilla-central/source/mobile/android/base/fxa/sync/FxAccountNotificationManager.java#103

[2] http://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html

[3] http://developer.android.com/reference/android/support/v4/app/NotificationCompat.BigTextStyle.html
Mentor: liuche, nalexander
Whiteboard: [lang=java][good second bug]
In case it's not clear, we should do this for *all* Firefox Account notifications, not just the migration ones.
nick,i would like to work on this bug.
Hi vaibhav,
thank you for working on this bug. The notification got added in bug 1098667, the texts are at
https://hg.mozilla.org/mozilla-central/rev/ae7ca57ce760#l14.55
and get used at
https://hg.mozilla.org/mozilla-central/rev/ae7ca57ce760#l12.32

The code for data reporting notification which uses the new style can be found at http://hg.mozilla.org/mozilla-central/rev/5b345b6dc928#l2.63

Documentation how to build Firefox for Android, about the developer style and debugging tips can be found at https://wiki.mozilla.org/Mobile/Fennec/Android

If you have further questions or get stuck, please ask.
You can find the instructions to get the Sync upgrade dialog in this file or by visiting https://id.etherpad.mozilla.org/sync-migration-testing
vaibhav, are you working on this bug? If yes, do you need more information?
Flags: needinfo?(choudharyvaibhav132)
This ticket is no longer relevant, since we've removed the Old Sync code (and migration path) in Bug 1220906.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(choudharyvaibhav132)
Resolution: --- → INVALID
Component: Firefox Sync: Cross-client → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: