Closed
Bug 626669
Opened 14 years ago
Closed 13 years ago
Dont show "Installing Libraries" message on Fennec splash screen every time
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: aaronmt, Assigned: blassey)
Details
Attachments
(1 file, 1 obsolete file)
3.47 KB,
patch
|
mbrubeck
:
review+
|
Details | Diff | Splinter Review |
Currently when starting Fennec, one will see the message "Installing Libraries" and then "Loading". The installing libraries process should just be part of the "Loading" message and is not really necessary or needed for the end-user.
Reporter | ||
Updated•14 years ago
|
Summary: Dont show installing libraries on Fennec boot splash → Dont show installing libraries on Fennec splash screen
Reporter | ||
Updated•14 years ago
|
Summary: Dont show installing libraries on Fennec splash screen → Dont show "Installing Libraries" message on Fennec splash screen
Assignee | ||
Comment 1•14 years ago
|
||
on devices with less than 150MB free, we'll never actually write the libraries out to disk so its wrong to show this message.
Assignee: nobody → blassey.bugs
Attachment #504811 -
Flags: review?(mbrubeck)
Comment 2•14 years ago
|
||
Comment on attachment 504811 [details] [diff] [review] patch r=mbrubeck. One nit, but you can decide whether it's worth fixing: >+++ b/embedding/android/GeckoApp.java >+ if (GeckoAppShell.sCacheFile == null) >+ GeckoAppShell.sCacheFile = getCacheDir(); >+ File libxulFile = new File(GeckoAppShell.sCacheFile, "libxul.so"); >+ if (GeckoAppShell.sFreeSpace == -1) { >+ StatFs cacheStats = new StatFs(GeckoAppShell.sCacheFile.getPath()); >+ GeckoAppShell.sFreeSpace = cacheStats.getFreeBlocks() * >+ cacheStats.getBlockSize(); >+ } >+++ b/embedding/android/GeckoAppShell.java >+ if (sCacheFile == null) >+ sCacheFile = GeckoApp.mAppContext.getCacheDir(); >+ GeckoAppShell.putenv("CACHE_PATH=" + sCacheFile.getPath()); > > // gingerbread introduces File.getUsableSpace(). We should use that. >+ if (sFreeSpace == -1) { >+ StatFs cacheStats = new StatFs(sCacheFile.getPath()); >+ sFreeSpace = cacheStats.getFreeBlocks() * >+ cacheStats.getBlockSize(); >+ } Could we put the duplicate code into GeckoAppShell method(s)? Especially since this fix depends on the logic staying exactly the same in both of these cases. I'm thinking of methods like getCacheFile(), shouldExtractLibraries(), and shouldRemoveLibraries(). Then sCacheFile, sFreeSpace, and the constants could remain private.
Attachment #504811 -
Flags: review?(mbrubeck) → review+
Assignee | ||
Comment 3•14 years ago
|
||
that's enough of a change that I'll re-request review
Attachment #504811 -
Attachment is obsolete: true
Attachment #504855 -
Flags: review?(mbrubeck)
Updated•14 years ago
|
Attachment #504855 -
Flags: review?(mbrubeck) → review+
Assignee | ||
Comment 4•14 years ago
|
||
pushed http://hg.mozilla.org/mozilla-central/rev/681b436e1feb
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
I can still see "Installing libraries" (for 1 second or less) on Samsung Galaxy S. Steps: 1. Uninstall older version (if available) 2. Install the build using adb tool (my device is not rooted, I cannot install it otherwise) 3. Start Fennec.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 6•13 years ago
|
||
the point is to not show the "installing libraries" on every boot for devices that don't have enough memory for us to install the libraries
Status: REOPENED → RESOLVED
Closed: 14 years ago → 13 years ago
Resolution: --- → FIXED
Summary: Dont show "Installing Libraries" message on Fennec splash screen → Dont show "Installing Libraries" message on Fennec splash screen every time
Comment 7•13 years ago
|
||
Verified fixed on build: Mozilla /5.0 (Android;Linux armv7l;rv:6.0a1) Gecko/20110512 Firefox/6.0a1 Fennec/6.0a1 Device: LG Optimus 2X (Android 2.2)
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•