Closed Bug 902357 Opened 11 years ago Closed 11 years ago

[Notes] Application doesn't recognize if system language is changed by keeping this app in background

Categories

(Firefox OS Graveyard :: Gaia::Notes, defect, P3)

ARM
Gonk (Firefox OS)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: leo.bugzilla.gaia, Assigned: matias)

Details

(Whiteboard: [3rd Party][apps watch list1][TD-350348])

Attachments

(5 files)

STR:
  1. Select system language as "English" and open the "Notes" application.
  2. Click "Home" button to keep Notes app in background and change the system 
     language to "pt-BR".
  3. Now check the Notes application running in Background.

Expected:
  The locale change should be applied.

Actual:
  Locale change is not applied and options disappeared from Menu view.
Flags: needinfo?(matias)
Attached image create notebook
Creating new notebook missing a title
Attached image notebook title
This is when selecting all notes view.
Attached image Exit confirm view
Try creating a new note and close the view, the confirm page will be like this.
Attached image default screen error
Default screen saying "No notes recorded start writing now" is not shown.
The app is not authorized to listen to settings changes therefore it cannot react to language change.

If I'm not mistaken, this has been discussed and approved by Dees (which coordinates this project). Never the less, after language change, reopening the app presents the currently selected language.
Flags: needinfo?(matias)
According to you, if we change the language by keeping this app in background will not reflect on the application immediately but will be applied after restarting the app. This is fine.

But in notes application, the above scenario will end up in broken views as shown in the screenshots, which are not acceptable from user perspective. Instead of displaying these broken views to user, the app should construct the view assuming the previous language. A restart of app can further apply the new language.

My intention here is i don't need a translated view immediately on language change but a view which is not broken will be acceptable here. I am fine to restart the app to apply the new language.
Flags: needinfo?(ran)
This is not happening to us with latest version, can you please confirm this is still an issue and if it is, please give us some more details on how to reproduce, i.e. using nightly/simulator/device? and from where are you installing the app?
Flags: needinfo?(ran)
I have tested on Device. Tested again with version 1.0.5
STR:
  1. Set device language as "English".
  2. Open MarketPlace and install "Notes" application.
  3. Open "Notes" application and visit all the views and don't create any notes.
  4. Press "Home" and change the language to "pt-BR" in settings.
  5. Open "Notes" application again and click new note creation icon "+" and cancel 
     the view.
  6. Now open the "Menu" view to find the broken UI.

Please let know if these STR are helpful to reproduce the issue. If not please let know ur IRC ID.
Flags: needinfo?(matias)
i think the issue here is different, there is a javascript error with indexedDB.
we used IDBTransaction.READ_WRITE which is now deprecated, and should be used as a "readwirte" string instead, this is fixed on version 1.0.6 which is pending approval on marketplace, lets wait till its approved and recheck this then.

thanks.
Flags: needinfo?(matias)
Ok then. I will test with version 1.0.6 and update you.
thanks
still broken in 1.0.6.  Developer notified.
Status: NEW → ASSIGNED
Nick, will you provide guidance/check in with Matias on the best practice for the app to change language based on device settings?
Assignee: nobody → nick
Priority: -- → P1
Severity: normal → minor
Priority: P1 → P3
Retested on the new Notes version 2.1 on 2 devices:
-Keon Geeksphone FFOS v1.2
-Huawei device FFOS v1.1

The new language is now reflected in the app after downloading Notes, opening app, changing the device language, and then reopening the app. Closing bug.
Assignee: nick → matias
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Component: Preinstalled B2G Apps → Gaia::Notes
Product: Tech Evangelism → Firefox OS
Version: Trunk → unspecified
No longer blocks: b2g-notes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: