a message for each package, post a message for a set of packages(8) so that we don't
end up posting too many messages and making the UI non-responsive by keeping
the Handler too busy. We just pass the loaded info as a map in the message object.
Changes to back ground threads that compute sizes and load resources.
Add a new AppInfoCache class with some additional methods to load and persist cache.
As of now this just uses a raw file to cache application sizes and labels. We
could have gotten away with a simple map object but for clarity and future enhancements
just reorganized everything into a class. Load the cache in onCreate and persist
in onDestroy rather than start and stop. Using the cache we get < 1sec load times.
Peristing the cache has negligible performance effects. Remove multiple references to
cache and just use one object all over the code.
Rework AppInfo class and remove some confusing initializations. Also move the formatting
sizes part to back ground threads rather than in the constructor of AppInfo projects.
Formatting the sizes takes a lot of time and there is no point in blocking the UI thread
with this operation.
Changes to Adapter to use the newly created cache system. Define new comparator
for comparing application labels when sorting lists rather than using the one defined in
ApplicationInfo class which was loading the labels again in compare method. This was redundant
and since we cache these labels anyway, just use the cached labels instead. Rename and add
new methods for some of the new handler messages that send updates to a list of objects now.
Changes to removeFromList method and just remove entry from lists and cache linearly.
Also fix a bug in the adapter class where we reinit the list everytime the activity gets
restarted. Add a check here to invoke notifyDataSetChanged if underlying data changes.
Add some debug statements to record time.
Merge commit '628431de91689b62a19e5fde0ed3b546bba7da74'
* commit '628431de91689b62a19e5fde0ed3b546bba7da74':
Fix bug 1956707 in which setting the default language has no effect.
* Changes
+ add orientation and keyboard config change in the manifest file.
+ remove state saving code
+ improve status checking time by doing it in one server connection.
Use the current Locale upon initialization of the TTS engine.
Retrieve the default engine value from the TextToSpeech.Engine class
instead of a hard-coded value in TextToSpeechSettings.
Merge commit '599221c7bbd6cd613fd4f86805ccaf0696a3e78c'
* commit '599221c7bbd6cd613fd4f86805ccaf0696a3e78c':
wifi: Update the AccessPointState network ID after saving configuration.
If there are more than 10 open access points, the network ID may have changed
after the configuration is saved.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Merge commit '5c30845cf310a5d8c2de3e9ac809c97f736a9513'
* commit '5c30845cf310a5d8c2de3e9ac809c97f736a9513':
Fix#1930767 : "Share with Google" not working on orientation change.
Merge commit '6dd27613b5ee59b1f0a90ad50fa080c0d98c47e2'
* commit '6dd27613b5ee59b1f0a90ad50fa080c0d98c47e2':
wifi: use new WifiManager.startScanActive() method to trigger scans.
Merge commit 'e02f206e1161fc2d332db60395e74cca397ffa27'
* commit 'e02f206e1161fc2d332db60395e74cca397ffa27':
Focus the password box when username is saved.
Merge commit '66959341a6b0891893d4c851be708c3073f61154'
* commit '66959341a6b0891893d4c851be708c3073f61154':
Fix behavior of cancelling the name cred. dialog.
Merge commit 'f96fb705f5b63177a79379b68dde307105b46f21'
* commit 'f96fb705f5b63177a79379b68dde307105b46f21':
In the TTS settings: rely on the default locale rather than default
* changes:
In the TTS settings: rely on the default locale rather than default values stored in TextToSpeech.Engine to initialize the default TTS country and variant.
Merge commit 'c4a3bf94cc870d940df37756ed2c5ea7067d00da'
* commit 'c4a3bf94cc870d940df37756ed2c5ea7067d00da':
Add header 'blob://' in front of the cert/key names in wpa_supplicant.conf.
Merge commit '423ab2eb9df5e2866ecb1f5f975f2f7a660d334f'
* commit '423ab2eb9df5e2866ecb1f5f975f2f7a660d334f':
String fixes for the credential storage and vpn settings.
* Changes
+ Shorten the messages for both set-password and enter-password dialogs
when other activities access the credential storage.
Patch Set 2:
+ Fix the capital issue in the vpn error messages.
+ Add separate strings for terms used in the error messages.
+ Modify related src files that use those terms.
Merge commit '879f7bcf41782940fff3ffcb3586d606361360c6'
* commit '879f7bcf41782940fff3ffcb3586d606361360c6':
Fix bug 1946195 by making use of the current Locale to set a default value
* changes:
Fix bug 1946195 by making use of the current Locale to set a default value in the language pref list (bug was no selection in the default language list). Fix half of bug 1956707 where speech rate value as read from the settings was translated to a ratio, which applied an improper speech rate on the TTS engine (bug was setting a default rate makes the TTS demo unintelligible). Moved logic to set the default value in the language pref list in a separate private method to improve readability. Changed default rate values so that normal is 1x and the fastest is 2x.
in the language pref list (bug was no selection in the default language list).
Fix half of bug 1956707 where speech rate value as read from the settings
was translated to a ratio, which applied an improper speech rate on the
TTS engine (bug was setting a default rate makes the TTS demo unintelligible).
Moved logic to set the default value in the language pref list in a separate
private method to improve readability.
Changed default rate values so that normal is 1x and the fastest is 2x.