Commit Graph

11401 Commits

Author SHA1 Message Date
Sunny Goyal 40902b3cb0 Merge "Preventing unnecessary options update to QSB provider by checking if the options have changed before calling update" into ub-launcher3-calgary 2016-05-19 22:54:22 +00:00
Tony Wickham ddb77003e7 Missed one more page indicator null check.
Hopefully this is the last one.

Change-Id: I1af4f7058834fe0ba60ccc8752a6bf0df64be473
2016-05-19 12:45:40 -07:00
Tony Wickham fea0a5f629 Add more null checks for page indicators.
Change-Id: Id86d4827c9079abfb236f956e531f0e29edfc54e
2016-05-19 11:27:55 -07:00
Sunny Goyal c64cfdd8fa Updating the folder page indicator to be more like the
framework page indicator (used in quick settings)

The active page is indicated with the accent color. During scroll
the active indicator expands to 2 dots corresponding to the visible pages.

Change-Id: Iaf57836b642cf87e5eed98048ecca7dd8e7643a4
2016-05-18 17:50:34 -07:00
Tony Wickham 770217c697 Add null check to page indicator to prevent crashes in landscape.
Change-Id: I9676c19bcdd9129a8519e96febc779f019bc8a13
2016-05-18 15:16:40 -07:00
Sunny Goyal 3f732190cc Preventing unnecessary options update to QSB provider
by checking if the options have changed before calling update

Bug: 28586377
Change-Id: Idf263b7a32ca85f23f728fa29b9c8ac84289052e
2016-05-18 15:00:52 -07:00
Baligh Uddin a40102f5d5 Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-05-18 19:06:21 +00:00
Sunny Goyal 7267adf68e Fixing build breakage
Change-Id: Ib649bff709f4b6e4f173006d267aafa069c2a8b4
2016-05-18 09:47:58 -07:00
Sunny Goyal 1acb9e9e29 Rearranging the provider checks to avoid packagemanager lookups
whenever launcher starts

Bug: 28737985
Change-Id: I3ce3e2741b3224fa5419d7ceca496e1bb91f065c
2016-05-18 09:41:27 -07:00
Tony Wickham ae00781428 Merge "Add PageIndicator interface and custom PageIndicatorLine view." into ub-launcher3-calgary 2016-05-18 02:09:02 +00:00
Tony Wickham f549dab31d Add PageIndicator interface and custom PageIndicatorLine view.
- The current PageIndicator has been renamed to PageIndicatorDots
  and PageIndicatorMarker has been renamed to PageIndicatorDot.
- PageIndicatorDots and PageIndicatorLine implement PageIndicator.
- PageIndicatorLine uses scroll progress and number of pages to
  draw a line of the correct size and position.
- All of these page indicator files are now in a pageindicators package.

Bug: 27227498

Change-Id: I9230d2e0600ce583989bd31d0b0e252b148d15c2
2016-05-17 18:53:57 -07:00
Tony Wickham 63d1b330bf Merge "Only show App Info drag target if developer settings are enabled." into ub-launcher3-calgary 2016-05-18 01:05:48 +00:00
Tony Wickham df23837d99 Only show App Info drag target if developer settings are enabled.
Bug: 28794577
Change-Id: Ia515a627a4f94121c47386829c6772bea42e70f1
2016-05-17 17:52:39 -07:00
Sunny Goyal aaf7d1d13b instead of unbinding items from the loader, unregistering listeners
in activity.onDestroy()

Bug: 28740269
Change-Id: I6bf2ad6aca43970fd10cfbcc113e609c227e07bf
2016-05-17 14:42:10 -07:00
Sunny Goyal 5b83d6ce8f Merge "Revert "Wrapping folderLisners with weak reference, and storing it as an array"" into ub-launcher3-calgary 2016-05-17 21:27:46 +00:00
Sunny Goyal 90cb3e51af Revert "Wrapping folderLisners with weak reference, and storing it as an array"
This reverts commit e48644a6cc.

Change-Id: I7bd1d09cae42193de228cb58c08526eeaf57ec04
2016-05-17 21:25:48 +00:00
Sunny Goyal 192ae6ca71 Merge "Wrapping folderLisners with weak reference, and storing it as an array" into ub-launcher3-calgary 2016-05-17 20:29:12 +00:00
Sunny Goyal e48644a6cc Wrapping folderLisners with weak reference, and storing it as an array
Storing as an array allows the listeners to be overriten on next bind.
These changes remove the need to unbind the item

Bug: 28740269
Change-Id: Ibbe4b760d64784fbe3075d18e2b946b366d631c5
2016-05-17 12:44:15 -07:00
Sunny Goyal 04cc3a7bea Opening the system default wallpaper picker on clicking the wallpaper tile
Bug: 28790378
Change-Id: If283b60a0b9563ab8e80d49b0ffa195fc3ffda8a
2016-05-17 11:29:46 -07:00
Baligh Uddin cc60ed63a7 Import translations. DO NOT MERGE
Change-Id: I6ed48cc0d1df572fa6aa007722fd1bb4246cd6c5
Auto-generated-cl: translation import
2016-05-17 00:22:02 -07:00
Sunny Goyal 840e1b3a82 Merge "Removing reference of hostView from LauncherAppWidgetInfo" into ub-launcher3-calgary 2016-05-17 02:22:11 +00:00
Sunny Goyal 87af0fded6 Removing reference of hostView from LauncherAppWidgetInfo
LauncherAppWidgetInfo is a model item and does not need to reference
a view. Removing this dependency will allow cleaning up the
item unbinding logic

Bug: 28740269
Change-Id: I11fc2e2500b8fe29d157eefe74c70b1decdfd08d
2016-05-16 14:58:20 -07:00
Sunny Goyal 519a47d5c9 On some "non-standard" devices, load label can cause a security exception due to modified platform code
am: 0d86a8dccf  -s ours

* commit '0d86a8dccf6557587eb3abae1bb3573e2c40c12c':
  On some "non-standard" devices, load label can cause a security exception due to modified platform code

Change-Id: Ic2256db82871f26497f699dd4ded276db63ff0ac
2016-05-16 20:05:33 +00:00
Sunny Goyal 0d86a8dccf On some "non-standard" devices, load label can cause a security exception
due to modified platform code

Bug: 28243147
Change-Id: Iab899d0cb233e19ebf994f8a3eacba26f840148f
2016-05-16 19:43:18 +00:00
Sunny Goyal f48e59268b Making the 'Allow rotation' setting dependent on system state
The setting will not be available on a tablet, where rotation is
always enabled. On mobiles, it will be disabled when auto-rotate
is disabled in display settings.
Also removing content provider dependency from settings, as its in the
same process as launcher.

Bug: 28704055
Change-Id: Ibe6b1e67411fb0e4b2e36446710f463e4a3d6883
2016-05-16 12:07:41 -07:00
Tony Wickham f898b970cc Call onLauncherTransitionPrepare() and End() from pinch.
This makes the pinch transition more consistent with other transitions.
One immediate benefit of this is that it updates adjacent overview
panels during pinch, regardless of whether they are completely visible.

Previously the adjacent panels' alphas weren't always reset to 0.
Specifically, if you made a small pinch from workspace, which
canceled and went back to workspace, adjacent pages retained a
slightly visible panel.

Bug: 27676309
Change-Id: I7e79fddec31cd649e0811e4524b9a9a501c627f9
2016-05-12 16:44:22 -07:00
Tony Wickham 8f7ead3e94 Update page when scrolling/flinging in free-scroll.
Bug: 28054048
Change-Id: Ic22e7e717c3ead52dd6fb7495c37be3837e11030
2016-05-12 16:28:24 -07:00
Sunny Goyal 6dc98b9dc0 Simplifying view cluster by using a single int flag instead of 4 booleans
Also fixing the bug where dirty flgas were never being set to false

Change-Id: Idbb16d07bef5a157502e1652bd1beb33ff39faaa
2016-05-11 15:46:45 -07:00
Sunny Goyal eb4b79935e Removing icon_type column
Icon type is not used consistently. It is used initially
during the loader. Afterwards, we save both the icon and resource to the db.
Instead of changing the logic to always read the shortcut-resource first, and fallback to the bitmap if the resource is not available,
always write the bitmap to DB whenever the shortcut is edited.

Change-Id: I0ea5e88f8904bd3250ca669220b3e5d6aeef1bfd
2016-05-11 15:21:42 -07:00
TreeHugger Robot 4dcd8ffecc Merge "Fixing a crash/ Launcher3 doesn't have predicted apps" into ub-launcher3-calgary 2016-05-11 20:18:58 +00:00
Hyunyoung Song 373f5718f6 Fixing a crash/ Launcher3 doesn't have predicted apps
Change-Id: Id405e6d077f8b4c3fb399d4a613d6013dca5cddc
2016-05-11 11:26:01 -07:00
Sunny Goyal 5a874d2a3d Merge "Changing minSDK for launcher3 to 21 (Lollipop)" into ub-launcher3-calgary 2016-05-11 04:44:38 +00:00
Hyunyoung Song da912837b3 Merge "Send predictedApps rank via user event logging" into ub-launcher3-calgary 2016-05-11 00:06:45 +00:00
Hyunyoung Song 6470cf449f Send predictedApps rank via user event logging
Change-Id: Ib492cb77bce0bc57f60bc4b1310df0810b63d0aa
2016-05-10 16:59:55 -07:00
Sunny Goyal bc543af01c build fix
Change-Id: Ib31b7b4efa96897e7ea04412a9deae14a432b6c0
2016-05-10 16:28:32 -07:00
Sunny Goyal d297be2148 Changing minSDK for launcher3 to 21 (Lollipop)
Change-Id: I421a33801886bdcccb43429b571af1ca7c6b9f55
2016-05-10 15:35:25 -07:00
Sunny Goyal c190dbfb78 Adding full backup handler for launcher3
Bug: 28302573

Change-Id: If0889a3b00b88b134b19d7f790159dfafdcdb004
2016-05-10 15:27:24 -07:00
Sunny Goyal 78508ec5ab Merge "Removing LauncherProvider dependency in DatabaseHeler" into ub-launcher3-calgary 2016-05-10 22:11:43 +00:00
Hyunyoung Song adb8eb5a34 Merge "Widgets tray should preserve scroll position during screen rotation" into ub-launcher3-calgary 2016-05-10 20:49:13 +00:00
Hyunyoung Song bc5d623845 Widgets tray should preserve scroll position during screen rotation
> This used to work, but when I got rid of preloading which was
handled by linear manager to increase scrolling speed, the save
and restore instance that was being handled by the linear layout
manager created using Launcher context also went away. Hence,
bringing back custom LinearLayoutManager.

Change-Id: Ibccdf80533a5ace06cc6c6932b257c223cbac0ff
2016-05-10 13:46:13 -07:00
Sunny Goyal b5b55c8012 Removing LauncherProvider dependency in DatabaseHeler
This will allow DatabaseHeler to easily be moved to an independent class

Change-Id: I9a3d5d3380ed0af246d7a01553a492467c3096b0
2016-05-10 12:30:47 -07:00
Sunny Goyal 6b360f684d Merge "Using a separate thread for logging" into ub-launcher3-calgary 2016-05-10 03:49:28 +00:00
Sunny Goyal 7cb519bde1 Merge "Removing some obsolete flags" into ub-launcher3-calgary 2016-05-10 03:49:15 +00:00
Sunny Goyal 0292bd18fa Updating gradle version
Change-Id: I4f43a45576118572470703668ff3f495a25f3e3c
2016-05-09 16:57:58 -07:00
Tony Wickham 462b5cca7b Extract color for the hotseat.
- Only considers the bottom fourth of the wallpaper
- Is translucent black or white depending on how dark/light
  the wallpaper is
- Hotseat extends behind the nav bar

Bug: 27230217
Change-Id: Id4ea6ee91b4dd221b4c277d22d5041cab178801d
2016-05-09 15:41:38 -07:00
Sunny Goyal 14c73cc120 Using a separate thread for logging
Change-Id: I85a900bd70e01a7df2c2d8bd09c82cebdec2d3be
2016-05-09 15:33:52 -07:00
Sunny Goyal a26e2d3d93 Removing some obsolete flags
Change-Id: Id33e28ddd7341d2b494c4b2a294663091afdb157
2016-05-09 14:13:06 -07:00
Sunny Goyal 34a2d31f32 Merge "Adding a utility class for persistant logging." into ub-launcher3-calgary 2016-05-09 21:06:04 +00:00
Sunny Goyal ac6d3a87ae Merge "Fixing bug where the widget background enters into a focused state if a child calls requestFocus in xml" into ub-launcher3-calgary 2016-05-09 20:53:39 +00:00
Sunny Goyal 713edfce26 Adding a utility class for persistant logging.
The logs are kept for at max 48 hours. It uses two log files and switches
between the two based on the day of the year.

Change-Id: I9a99499b3445a62f29f62a5cd13db20b1783bcd3
2016-05-09 12:47:42 -07:00