summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Launcher.java
Commit message (Collapse)AuthorAgeFilesLines
* Updating onRequestPermissionsResult signature to publicSunny Goyal2015-07-071-1/+1
| | | | | Change-Id: Ie08caa55a195e9062006d13e86238cca827ef249 (cherry picked from commit dd2e6dfc16b7c6ae65123e4df545d42124b76cb0)
* Add LauncherCallbacks for requesting permissions on MNCDave Hawkey2015-06-261-0/+9
| | | | Change-Id: Ia8f704590e03e16db04c2f7acee1e79ce7334749
* [DO NOT MERGE] Use custom slide-up animation on LMP MR1 instead of system ↵Adam Cohen2015-05-221-1/+6
| | | | | | | | default issue 21402755 Change-Id: I87ddef08e7b3134c791f769fc279e62d520cd18c
* Preventing NullPointerException when cancelling a shortcut additionSunny Goyal2015-05-131-1/+3
| | | | | | Bug: 21024018 Change-Id: Iac09d9e4f1411aa9fe1ec89fbfe749b009c7d457 (cherry picked from commit f044bb1edd8670fbc2cf9eeb1a51c31b91f0889c)
* Stop using custom activity transition, rely on system default in these casesAdam Cohen2015-04-021-3/+4
| | | | | | | | | -> workaround for platform issue related to this resource, but also a decent code cleanup issue 20006693 Change-Id: Iea3a2fb14be5ed78d882ddf9d970b12d177f4249
* Adding Launcher3 callbacks for trimming memory.Robert Kozikowski2015-03-301-0/+3
| | | | | | | | | | | | | | | | It will help reduce memory footprint of Launcher, when in background. It is required to help deallocate images, when Google Now Launcher goes into the background. See cl/83222937/ . Plan after this CL: - Generate drop CL with launcher3_drop.sh. Add empty metods to make code compile. - Sync the cl/83222937 and hide the code behind the feature flag. It was previously submitted in ag/628070 and reverted in ag/630423 due to GSA release schedule. Change-Id: I56eee618b86d518d0afc362b6cf44c3bbec1f19c
* Avoid casting AppWidgetProviderInfo to LauncherAppWidgetProviderInfo upon ↵Adam Cohen2015-03-271-1/+3
| | | | | | | | unparcel issue 19904413 Change-Id: Ie1b4a2b1331f6a707f8590cd0396138a20946658
* Ensure that we capture all paths for starting activity for resultAdam Cohen2015-03-271-1/+18
| | | | | | | | | | | -> AppWidgetManagerCompatVL uses an IntentSender to launch the widget config activity (to handle the case of cross profile config activities) -> Launcher was not overriding this method, and so not capturing the fact that we are waiting for a result. issue 19723510 Change-Id: If5751e6d23d31c9f7b3b85f9464a93f935487cec
* Don't clobber widgets with the same component - DO NOT MERGERobin Lee2015-03-191-1/+1
| | | | | | | | | By not storing them in a HashMap keyed against ComponentName (which is almost guaranteed to conflict with other widgets when managed profiles are in play). Bug: 19444068 Change-Id: I6ffce78e8aaf265196239670404cbdaff9fa09be
* Fix widget refresh issue on package install/uninstallHyunyoung Song2015-03-111-2/+2
| | | | | | | | Culprit CL: https://googleplex-android-review.git.corp.google.com/#/c/592303/3/src/com/android/launcher3/LauncherModel.java b/19658229 Change-Id: I02b0b2a0ed9bc3200bbe1edcb251cf0efe939e53
* Using SCREEN_ORIENTATION_LOCKED for locking to current orientation.Sunny Goyal2015-02-231-2/+6
| | | | | | Bug: 17298128 Change-Id: If64b6957a594bcc48f6454689d11cd63d31b9239 (cherry picked from commit 3c1865ad5050f594d1684fe8962bfbc8ffcbe4bb)
* Ensure that layers are properly removed after animationAdam Cohen2015-02-131-24/+36
| | | | | | Bug 19243980 Change-Id: Ic1d54f92051f7d937878898cae210ec18ecbaff8
* Launcher crashes on widget bind permission promptSunny Goyal2015-02-061-3/+3
| | | | | Change-Id: If09feb357e1604e5ee1a66305b022674f466833e (cherry picked from commit e6b63a3d7335fed5b7bbcc6d2c6230ae28facd3e)
* Revert "Adding Launcher3 callbacks for trimming memory."Adam Cohen2015-02-061-3/+0
| | | | | | This reverts commit 42f3b9e0283c30c40c286f9958ce0f8b02f85c52. Change-Id: I65a7c893576c0901b231bab9abe6937f99415f1e
* Adding Launcher3 callbacks for trimming memory.Robert Kozikowski2015-02-041-0/+3
| | | | | | | | It will help reduce memory footprint of Launcher, when in background. It is required to help deallocate images, when Google Now Launcher goes into the background. See cl/83222937/ . Change-Id: I6d3d4d1f0457c67abcad3ba4516c87abcf666b05
* Adding accessibility controlsSunny Goyal2015-01-161-30/+41
| | | | | | | | | | | > Adding 'Remove' option to workspace items > Adding 'Add to workspace' to all apps and widget list items, which adds the item to the first available space, giving preference to the current workspace screen > Adding 'App info' and 'Uninstall' options to appropriate items Bug: 18482913 Change-Id: Ifab7423af2d9ba502b5a2771b37bb5436b3df937
* Supporting custom widgets provided by launcherAdam Cohen2014-12-051-76/+60
| | | | | | | -> This change provides integration for widgets provided by the launcher package which can run arbitrary code. Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42
* Fix a couple regressions from resetting AppsCustomizeTabHostAdam Cohen2014-11-191-3/+2
| | | | | | | Bug 18409435 Bug 18358080 Change-Id: I07a071342b5c5e062ab2bb562b672d93ba0d5c2e
* Add callback which got missed in refactorAdam Cohen2014-11-171-2/+11
| | | | | | Bug 18418855 Change-Id: Ia3a1cec76721bbbc118dd7389b5e960802a64b88
* Adding a few null checks.Sunny Goyal2014-11-141-3/+3
| | | | | | | | | | 1) During migration, if launcher2 has deleted user data, migration oes not happen 2) If Launcher3 does not has bind widget permission, QSB would be null. Bug: 18388507 Change-Id: Ief81f6f77ce154e7b3ecd4b77caf24239401e738
* Merge "Using the default search widget in Launcher3" into ub-now-queensSunny Goyal2014-11-121-352/+52
|\
| * Using the default search widget in Launcher3Sunny Goyal2014-11-111-352/+52
| | | | | | | | | | | | | | | | | | | | > Removing all logic related to search and voice overlays from Launcher3 > Using the widget provided by global search provider on the homescreen > Removing VoiceButtonProxy, as it is not being used anymore Change-Id: Ie8b09b44f7213c8fa11bce685914442e4884295d
* | Removing some duplicate methodsSunny Goyal2014-11-111-15/+3
|/ | | | Change-Id: I8a1295ab74890984e8d8508aaa18fd79ac2a032d
* Using a proxy call for isAttachedToWindow for pre 19 devicesSunny Goyal2014-11-051-10/+2
| | | | | Bug: 17423114 Change-Id: I6f0cc306b7fcc8087b4e4fc92bb8796d51a989d6
* Overlay shouldn't show up above Intro screenAdam Cohen2014-10-311-7/+16
| | | | | bug: 18173340 Change-Id: Icf738a55398023ab6bad5cced05b25e053dec0a2
* Adding a couple memory optimizations to LauncherAdam Cohen2014-10-311-2/+17
| | | | | | | | | -> Always dispose of widget page views when leaving the activity. These pages hold onto many bitmaps. -> Clear database cache when leaving the activity. Bug: 17967108 Change-Id: I10ebaaed14e7cd86f09a9afcabd73043705f21b8
* Updating backup restore logicSunny Goyal2014-10-281-16/+1
| | | | | | | | | | | | | | | > Adding DeviceProfile information in the backup > Removing SharedPreference backup > Adding helper methods to abort backup in the middle > Comparing keys against the backup journal during restore to avoid restoring corrupt/lost entries > Old backups are still compatible, but lost keys verification will be ignored in that case. Bug: 17937935 Bug: 17951775 Bug: 17260941 Change-Id: Iad48646cfdd69abaff5c163b2055f3b8a9b39b19
* Tweaking close AllApps / Widgets on KK and belowAdam Cohen2014-10-241-5/+5
| | | | | | Bug: 17956862 Change-Id: I83b8973b7e98c1c3660221ac65dcb9ca8b4c84fd
* Allow LauncherOverlay to access and manage insetsAdam Cohen2014-10-241-4/+4
| | | | Change-Id: Ib9faf37eb22ad2a0b18c076978ec9f2fd8864c0c
* Merge "First pass of the Launcher Overlay interface / impl" into ub-now-queensAdam Cohen2014-10-231-5/+92
|\
| * First pass of the Launcher Overlay interface / implAdam Cohen2014-10-221-5/+92
| | | | | | | | | | | | | | -> Added simple reference launcher extension -> Make launcher able to handle a null qsb Change-Id: Ib1575243cac800a335e95bbf00cdc394bb4741c3
* | Merge "Updating ItemInfo objects in the worker thread" into ub-now-queensSunny Goyal2014-10-211-14/+39
|\ \ | |/ |/|
| * Updating ItemInfo objects in the worker threadSunny Goyal2014-10-141-14/+39
| | | | | | | | | | | | | | | | | | | | | | > Launcher was making non-trivial updates to ItemInfo objects on UI thread. These updates were getting skipped when the Activity gets destroyed (possibly due to onConfigurationChange) > Unregistering SessionCallback on application onTerminate, rather than activity onDestroy Bug: 17941096 Change-Id: Iad4a50871fe09470f26139b44a2e9886833032f1
* | Merge "Showing widgets in a disabled state, when running in safe mode" into ↵Sunny Goyal2014-10-201-8/+18
|\ \ | | | | | | | | | ub-now-queens
| * | Showing widgets in a disabled state, when running in safe modeSunny Goyal2014-10-161-8/+18
| | | | | | | | | | | | | | | | | | Bug: 15172107 Change-Id: I7209836ca4ffacde7b7b232e230e9b9f1a0e54bb
* | | Using LinearLayout for overview panelSunny Goyal2014-10-161-3/+0
|/ / | | | | | | | | | | | | | | > Using equal weight to ensure that all items are of same width > The total width of the panel is set in DeviceProfile#layout Bug: 17456856 Change-Id: Ic98f5c4f7befd4d32d1b52dfe8c9f5b6c58b020a
* | Merge "Add more Launcher files to delete on Clear Launcher Data" into ↵Helena Josol2014-10-161-3/+3
|\ \ | | | | | | | | | ub-now-queens
| * | Add more Launcher files to delete on Clear Launcher DataHelena Josol2014-10-161-3/+3
| |/ | | | | | | | | Bug: 12753154 Change-Id: I00679bdc6eff70a1398122aaa955c08eabd556b1
* | Merge "Use LauncherCallbacks model instead of method overrides" into ↵Adam Cohen2014-10-151-54/+205
|\ \ | | | | | | | | | ub-now-queens
| * | Use LauncherCallbacks model instead of method overridesAdam Cohen2014-10-151-54/+205
| |/ | | | | | | | | | | | | | | | | -> When extending the Launcher Activity, instead of overriding public and protected methods, create a proper interface -> This helps define the interface when extending Launcher more formally and more clearly Change-Id: Ib38e8a376b2242d4078bf6856bb145f5b5f0da80
* / Adding NPE check in InstallShortcutReceiverSunny Goyal2014-10-141-1/+1
|/ | | | | | | > Removing some unused methods Bug: 17971165 Change-Id: I1bc5c764fd65b44c950a58371b60d2b53c221995
* Removing some dead codeAdam Cohen2014-10-091-25/+0
| | | | Change-Id: Idbd49302fc7123f72c7dad4c50612aaa662cca0d
* Merge "Keeping icons in disabled state when SD-card is unmounted" into ↵Sunny Goyal2014-10-081-7/+23
|\ | | | | | | ub-now-queens
| * Keeping icons in disabled state when SD-card is unmountedSunny Goyal2014-10-081-9/+23
| | | | | | | | | | | | | | | | | | | | > changing shortcutInfo.isDisabled to be a flag based variable > on received OnPackageUnavailable, icons are disabled from desktop instead of being removed. Icons in all apps are removed Bug: 15852084 Bug: 16238283 Change-Id: I126d23c709682a917d4bbb84de71032593dce8f9
* | Using DeviceDefault theme for Launcher and WallpaperPickerSunny Goyal2014-10-081-4/+1
|/ | | | Change-Id: I31bfeedd99d50683fba910f233b25bb3f364ce1f
* Updating icons for sortcuts when the target app updates.Sunny Goyal2014-10-071-0/+20
| | | | | Bug: 17398260 Change-Id: I055abb971d1f72245e8616ac2ce07bcdf37cdd52
* am 0c2918f4: Use View.generateViewId if availableIan Parkinson2014-10-061-12/+13
|\ | | | | | | | | * commit '0c2918f4f4c4a9a6609b82cf23155ed51840f2c8': Use View.generateViewId if available
| * Use View.generateViewId if availableIan Parkinson2014-10-061-12/+13
| | | | | | | | | | Bug: 17456181 Change-Id: Ib7e310ba38ed5e392c5c9b8734f197212f518389
* | Create a central list of files the Launcher writes to the app directoryHelena Josol2014-10-061-4/+4
|/ | | | | | | Replace hardcoded Launcher filenames with the defined constants. Bug: 12753154 Change-Id: I072f202d9388a703b9e6851bde64ea7fafe4b10a
* Don't let old Launcher activity interfere with new oneAdam Cohen2014-09-301-3/+10
| | | | | | | | | | | | | | | | | | -> Launcher uses a static instance of it's loader (across multiple activities) since activities can come and go (configuration change, eg.) but the data model and loading is static. -> Currently, this is not robust to a sequence of events that looks like onCreate(instance A), onCreate(instance B), onDestroy(instance B) -- depending on the timing of those calls. -> This CL addresses a symptom of the above scenario by not allowing an older Launcher Activity cancel the loader / clear the callbacks for a newer Activity. Bug 17679693 Change-Id: I8ece93e288464b0d578b9669c165b67132d997ed