summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorMakoto Onuki <omakoto@google.com>2016-07-13 16:14:01 -0700
committerMakoto Onuki <omakoto@google.com>2016-07-13 17:37:06 -0700
commit4e6cef49ef11bbb5bfc0e9f0fb865188492d88b0 (patch)
treee04d6b1c48e6a1c05cb077e0dccdaa99cddb46a6 /tools/aapt2/java/JavaClassGenerator.cpp
parentf90128c68d4045ba77ed025de02155ff046b7614 (diff)
Handle locale change and pacakge change in different way
- Stop using a custom callback from AM to detect locale changes and use the LOCALE_CHANGED broadcast instead. - This would open up a chance where a publisher app fetches its won manifest shortcuts after a locale change but ShortcutManager hasn't updated string resources. - So instead, at every entry point from ShortcutManager, check if the locale has changed, and if so, update all resources (and reset throttling). - Do the same for package change events too. At every entry point from ShortcutManager, check if the caller package has been updated, or any target activities have been disabled. If so, rescan the caller package. - We do *not* do the same check at the LauncherApps entry points, because the launcher should use the callback to listen to shortcut changes. - Also stopped using PackageMonitor for now because we want to set a higher priority and changing PackageMonitor at this point seems too much for DR. Bug 29895275 Bug 30123329 Change-Id: Ib4a2f626a936c7328e2cc032324f5c3d1c3b9122
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions