Closed Bug 971900 Opened 11 years ago Closed 11 years ago

onLocaleReady incorrectly elides onConfigurationChange call if urlBar doesn't exist

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 31

People

(Reporter: rnewman, Assigned: rnewman)

References

Details

Attachments

(1 file)

// The URL bar hint needs to be populated. TextView urlBar = (TextView) findViewById(R.id.url_bar_title); if (urlBar == null) { return; } final String hint = getResources().getString(R.string.url_bar_default_text); urlBar.setHint(hint); // Allow onConfigurationChanged to take care of the rest. onConfigurationChanged(getResources().getConfiguration()); That early return is probably a little over-zealous.
Blocks: 935025
Assignee: nobody → rnewman
Status: NEW → ASSIGNED
Comment on attachment 8407219 [details] [diff] [review] onLocaleReady incorrectly elides onConfigurationChange call if urlBar doesn't exist. v1 Review of attachment 8407219 [details] [diff] [review]: ----------------------------------------------------------------- A comment explaining that |onLocaleReady| is for strings, whilst |onConfigurationChanged| is for device changes (that might not require strings) in the method comments of each would be good. Also, a log if urlBar doesn't exist? I'm not sure how scared I should be that having urlBar in GeckoApp is not a hard requirement...
Attachment #8407219 - Flags: review?(nalexander) → review+
Target Milestone: --- → Firefox 31
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: