Commit Graph

365 Commits

Author SHA1 Message Date
Sunny Goyal fafca5299e Using a proxy call for isAttachedToWindow for pre 19 devices
Bug: 17423114
Change-Id: I6f0cc306b7fcc8087b4e4fc92bb8796d51a989d6
2014-11-05 15:20:20 -08:00
Adam Cohen c3e12c733e Overlay shouldn't show up above Intro screen
bug: 18173340
Change-Id: Icf738a55398023ab6bad5cced05b25e053dec0a2
2014-10-31 16:34:42 -07:00
Adam Cohen 3f9c971e76 Adding a couple memory optimizations to Launcher
-> 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
2014-10-31 12:15:09 -07:00
Sunny Goyal 33d4438976 Updating backup restore logic
> 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
2014-10-28 09:27:10 -07:00
Adam Cohen 0fb5ce20d7 Tweaking close AllApps / Widgets on KK and below
Bug: 17956862

Change-Id: I83b8973b7e98c1c3660221ac65dcb9ca8b4c84fd
2014-10-24 14:15:35 -07:00
Adam Cohen a6d0492e5f Allow LauncherOverlay to access and manage insets
Change-Id: Ib9faf37eb22ad2a0b18c076978ec9f2fd8864c0c
2014-10-24 11:47:30 -07:00
Adam Cohen 24e18aea81 Merge "First pass of the Launcher Overlay interface / impl" into ub-now-queens 2014-10-23 00:41:58 +00:00
Adam Cohen c2d6e897db First pass of the Launcher Overlay interface / impl
-> Added simple reference launcher extension
-> Make launcher able to handle a null qsb

Change-Id: Ib1575243cac800a335e95bbf00cdc394bb4741c3
2014-10-22 17:40:39 -07:00
Sunny Goyal 1231c0743c Merge "Updating ItemInfo objects in the worker thread" into ub-now-queens 2014-10-21 18:30:20 +00:00
Sunny Goyal 2fb6609c31 Merge "Showing widgets in a disabled state, when running in safe mode" into ub-now-queens 2014-10-20 20:41:47 +00:00
Sunny Goyal e0987c5c40 Using LinearLayout for overview panel
> 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
2014-10-16 15:39:25 -07:00
Sunny Goyal 9b4b0812fe Showing widgets in a disabled state, when running in safe mode
Bug: 15172107

Change-Id: I7209836ca4ffacde7b7b232e230e9b9f1a0e54bb
2014-10-16 11:20:41 -07:00
Helena Josol d37a1f5abe Merge "Add more Launcher files to delete on Clear Launcher Data" into ub-now-queens 2014-10-16 16:51:43 +00:00
Helena Josol 28db280b7a Add more Launcher files to delete on Clear Launcher Data
Bug: 12753154
Change-Id: I00679bdc6eff70a1398122aaa955c08eabd556b1
2014-10-16 17:35:50 +01:00
Adam Cohen 34899b9c1a Merge "Use LauncherCallbacks model instead of method overrides" into ub-now-queens 2014-10-15 19:47:48 +00:00
Adam Cohen 9211d42f13 Use LauncherCallbacks model instead of method overrides
-> 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
2014-10-15 11:49:50 -07:00
Sunny Goyal 2350bc9785 Adding NPE check in InstallShortcutReceiver
> Removing some unused methods

Bug: 17971165
Change-Id: I1bc5c764fd65b44c950a58371b60d2b53c221995
2014-10-14 16:43:45 -07:00
Sunny Goyal 4390acea35 Updating ItemInfo objects in the worker thread
> 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
2014-10-14 14:39:26 -07:00
Adam Cohen 0014ca20aa Removing some dead code
Change-Id: Idbd49302fc7123f72c7dad4c50612aaa662cca0d
2014-10-09 18:53:20 -07:00
Sunny Goyal 05700ad38f Merge "Keeping icons in disabled state when SD-card is unmounted" into ub-now-queens 2014-10-08 18:10:40 +00:00
Sunny Goyal 1a745e8f18 Keeping icons in disabled state when SD-card is unmounted
> 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
2014-10-08 11:07:11 -07:00
Sunny Goyal e03b81294f Using DeviceDefault theme for Launcher and WallpaperPicker
Change-Id: I31bfeedd99d50683fba910f233b25bb3f364ce1f
2014-10-08 09:55:59 -07:00
Sunny Goyal b50cc8c5d6 Updating icons for sortcuts when the target app updates.
Bug: 17398260
Change-Id: I055abb971d1f72245e8616ac2ce07bcdf37cdd52
2014-10-07 14:56:58 -07:00
Ian Parkinson 33de945451 am 0c2918f4: Use View.generateViewId if available
* commit '0c2918f4f4c4a9a6609b82cf23155ed51840f2c8':
  Use View.generateViewId if available
2014-10-06 16:59:53 +00:00
Helena Josol 4fbbb3e3e0 Create a central list of files the Launcher writes to the app directory
Replace hardcoded Launcher filenames with the defined constants.

Bug: 12753154
Change-Id: I072f202d9388a703b9e6851bde64ea7fafe4b10a
2014-10-06 17:08:10 +01:00
Ian Parkinson 0c2918f4f4 Use View.generateViewId if available
Bug: 17456181
Change-Id: Ib7e310ba38ed5e392c5c9b8734f197212f518389
2014-10-06 14:27:16 +01:00
Adam Cohen 1a85c5839c Don't let old Launcher activity interfere with new one
-> 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
2014-09-30 10:23:18 -07:00
Sunny Goyal f876301d0a UI Fixes
> Adding a scrim to the longpress cling

Bug: 17573777

High level design asks (very low-risk)
> Changing the dialog to use device default theme
> Updating screenpanel assets

Change-Id: Ia0216b60fd8cd607d83a5e7c3d7e6c8255125eda
2014-09-23 16:33:26 -07:00
Adam Cohen d8f6253e67 Merge "When ensuring screen exists, make sure it's actually referring to a screen, not a rank" into ub-now-porkchop 2014-09-20 06:45:54 +00:00
Adam Cohen 83079e43ae When ensuring screen exists, make sure it's actually referring to a screen, not a rank
Bug: 17496589
Change-Id: If60e22dd71fa32530db91e37057689de5fb25646
2014-09-19 17:46:32 -07:00
Sunny Goyal acefecbff3 Merge "Updating promise icon's bitmap and label when onBadgingChanged is received" into ub-now-porkchop 2014-09-19 19:58:07 +00:00
Sunny Goyal a22666f681 Updating promise icon's bitmap and label when onBadgingChanged is received
Bug: 17583799
Change-Id: I68b4f9d4086c43bd949ad8b46b574ec78edb32db
2014-09-19 12:16:52 -07:00
Sunny Goyal 92e97dccab Merge "Fix: First run cling shoud show 'Welcome' when there is no migration cling" into ub-now-porkchop 2014-09-19 18:02:25 +00:00
Sunny Goyal af0628f84e Fix: First run cling shoud show 'Welcome' when there is no migration cling
Bug: 17582926
Change-Id: I662e0ed9f12d237ee34a8f4540b339edee08c611
2014-09-19 10:59:35 -07:00
Adam Cohen ddd5aaaf35 Merge "Perform null check in animation complete" into ub-now-porkchop 2014-09-18 15:19:40 +00:00
Adam Cohen 493f6bc142 Perform null check in animation complete
Bug 17561235

Change-Id: I280dca9e03eed3f4e1edd97f2f8efac0b5e4b29d
2014-09-18 08:14:05 -07:00
Kenny Guy d794a3f465 Update calls now we have an L API version.
Bug: 17543647
Change-Id: I92c652a4ced5a5e783b24e42f9da4d9dfe1118ba
2014-09-18 13:07:49 +01:00
Adam Cohen 8e894faadf Fixing a couple issues with bad AllApps state
Bug 17388923

Change-Id: I8f8a0163c0172d6f286a55d89793b843b092a3ca
2014-09-09 16:25:10 +02:00
Adam Cohen 0f668f3c2b Prevent GNL from crashing on JB
issue 17433546

Change-Id: Ie5071e516b26400a27473eaaa401023f1af1d840
2014-09-09 10:00:48 +00:00
Sunny Goyal 88d60f14f2 Showing clings only after the intro has completed
issue: 17408736
Change-Id: Ife2261f717003e828e8032b17c51e34b1ec02ecf
2014-09-08 03:48:24 -07:00
Adam Cohen a38dc90188 Ensure all apps button inintialized before performing all apps transition
-> Also removing text shadows in all apps and folders (bug 16955157)

Bug 17400227

Change-Id: I67d361a7a1cb548c9caca4214621607feaef963a
2014-09-07 18:43:54 +02:00
Adam Cohen cd1452859d Second half of workaround for all apps crash in restricted profile
Bug 17363836

Change-Id: If83cf3ef73ce2f992f69d42bad5d6f41cc3b9b9e
2014-09-06 18:34:16 +02:00
Adam Cohen c761d3cf95 Workaround for all apps crash in restricted profile
Bug 17363836

Change-Id: I1c12e0300cfb1046bc7f2f3159d018ebf0a2f57d
2014-09-06 18:17:47 +02:00
Sunny Goyal 1c13ff5691 Merge "Handling label and icon from SessionInfo." into ub-now-porkchop 2014-09-05 07:42:32 +00:00
Sunny Goyal 349426234e Handling label and icon from SessionInfo.
> The ShortcutInfo stores state as bit flags and not as ints
> Intents of auto-install shortcut are automatically updated
upon installation
> Icons/titles for active sessions are cached in IconCache

Change-Id: I2047849f67d4a8aaf2bc346b58110325bb4807d4
2014-09-04 08:18:33 -07:00
Adam Cohen 0d2adfbbb3 Potential fix for a couple bugs
issue 17371274
issue 17368590

Change-Id: I717f9c37613efd9d61e401540ca82aff77058022
2014-09-04 01:29:26 +02:00
Ian Parkinson 047036e2c1 Give GEL a way to clear the typed text when it starts searching
...otherwise it'll be re-used every time the user starts a new
query. We take care not to change the way that typed text gets
cleared (in onWindowVisibilityChanged()) in other cases.

GEL will actually use this text in ag/537329. This CL will cause
the GEL build to break until that change is submitted, so
I'll be sure to submit them both close to each other.

Bug: 16953058
Change-Id: I7ed613e69eb7a38b1a5e6108715ca614b59fd24d
2014-09-01 16:08:07 +01:00
Adam Cohen 2854d25619 All apps transition work
-> Fix icons popping in
-> Fix issue 17259204
-> posting animation start and buildLayer to allow first
   frame to be ready. This becomes necessary with RevealAnimator
   on the render thread, since it can't use FirstFrameAnimatorHelper
   any longer.
-> adding a bit better transition for K, issue 17252683
-> updating a few assets

Change-Id: I0b193b4b3b511492a2fad6230cd91e3f0de634f0
2014-08-29 11:25:34 -07:00
Sunny Goyal d5058a534e Merge "Improving restored widget behavior" into ub-now-porkchop 2014-08-28 00:08:56 +00:00
Sunny Goyal e7b8cd9e4f Improving restored widget behavior
> Clicking a broken widget install shows a dialog similar
to an app icon
> Clicking remove on the dialog removed all components
for the corresponding package
> Widget pending view shows 'Setup' text instead of icon,
if there is enough space

Change-Id: I82ec0a1ee9542c1e3b860e6e00798a80450dce3c
2014-08-27 14:07:05 -07:00