Commit Graph

78507 Commits

Author SHA1 Message Date
Tony Wickham bdeaa0b079 Add null check to page indicator to prevent crashes in landscape.
am: 770217c697

* commit '770217c697a92b441b66fac6d3441db1c0a84a3a':
  Add null check to page indicator to prevent crashes in landscape.

Change-Id: Ic9ba50892ef777d76f9bd64e3ab81f220eff8532
2016-05-18 22:29:28 +00: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 1b6f237222 Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
am: a40102f5d5  -s ours

* commit 'a40102f5d5049d6656f98122bf23d7f27ecc6593':
  Import translations. DO NOT MERGE

Change-Id: I60a4f2802a3ec5a0f2184371c8f11a1ade693ba5
2016-05-18 19:22:24 +00:00
Baligh Uddin 09befd9941 Merge "Import translations. DO NOT MERGE" into ub-launcher3-burnaby-nyc 2016-05-18 19:06:23 +00:00
Baligh Uddin a40102f5d5 Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-05-18 19:06:21 +00:00
Baligh Uddin dfc8d1c4d1 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2016-05-18 19:06:20 +00:00
Sunny Goyal 251d464086 Fixing build breakage
am: 7267adf68e

* commit '7267adf68eb582ff20e2ce1bfb2068caecc4e3f5':
  Fixing build breakage

Change-Id: I558760d325a96cea3e51a054d7b866ba9036ea9c
2016-05-18 16:51:38 +00:00
Sunny Goyal 1a784f6488 Rearranging the provider checks to avoid packagemanager lookups whenever launcher starts
am: 1acb9e9e29

* commit '1acb9e9e29bb06b6266781284ae60e9fd4d0962f':
  Rearranging the provider checks to avoid packagemanager lookups whenever launcher starts

Change-Id: I4717167af838e9ab30992f7eeaf8ef6d7b73e50b
2016-05-18 16:51:38 +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 8617f3b3ba Merge "Add PageIndicator interface and custom PageIndicatorLine view." into ub-launcher3-calgary
am: ae00781428

* commit 'ae007814289a465be3df1ddca276e30f73460a97':
  Add PageIndicator interface and custom PageIndicatorLine view.

Change-Id: I5e541836b8628236e2cd91a7f3aa37c52ac70f06
2016-05-18 02:17:13 +00: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 53d9b5282a Merge "Only show App Info drag target if developer settings are enabled." into ub-launcher3-calgary
am: 63d1b330bf

* commit '63d1b330bfe7942c5a53d53010b6f5e6dea0945c':
  Only show App Info drag target if developer settings are enabled.

Change-Id: I911691ad21475e8bf3fd694b07a39fb2e17af776
2016-05-18 01:10:48 +00: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 73306bf56b instead of unbinding items from the loader, unregistering listeners in activity.onDestroy()
am: aaf7d1d13b

* commit 'aaf7d1d13bd88bdeac5c56a9ab1d293fdaea3c11':
  instead of unbinding items from the loader, unregistering listeners in activity.onDestroy()

Change-Id: I6ae696f375a15a396d762a84bd148317e847ac11
2016-05-17 22:03:56 +00:00
Sunny Goyal 889985b44a Merge "Revert "Wrapping folderLisners with weak reference, and storing it as an array"" into ub-launcher3-calgary
am: 5b83d6ce8f

* commit '5b83d6ce8f7391aab67b7c53d972380fe0762ced':
  Revert "Wrapping folderLisners with weak reference, and storing it as an array"

Change-Id: Ie82f664b8562d96b73a57b0f88a59f8d0184133d
2016-05-17 21:43:45 +00: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 b7af85a667 Merge "Wrapping folderLisners with weak reference, and storing it as an array" into ub-launcher3-calgary
am: 192ae6ca71

* commit '192ae6ca71b0a1401ad44020b631c634a348597e':
  Wrapping folderLisners with weak reference, and storing it as an array

Change-Id: Icc6f57d05b53b452073038f612a8277f8b395be4
2016-05-17 20:41:37 +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 841c19619e Opening the system default wallpaper picker on clicking the wallpaper tile
am: 04cc3a7bea

* commit '04cc3a7beabf03c2e09c3b3e99601fe983a3d897':
  Opening the system default wallpaper picker on clicking the wallpaper tile

Change-Id: I1f256234b05ad655ad66531e5fda78c93d14e334
2016-05-17 18:57:31 +00: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 f478efd10c Import translations. DO NOT MERGE
Change-Id: I799b7bb6b24c2ef7cd1026863cb5daae32ea346b
Auto-generated-cl: translation import
2016-05-17 00:22:34 -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
Baligh Uddin 03dc99c0ba Import translations. DO NOT MERGE
Change-Id: Ie23f2e6ed183ef562db099f159b11402c3a959b6
Auto-generated-cl: translation import
2016-05-17 00:21:31 -07:00
Sunny Goyal 7d1934981b Merge "Removing reference of hostView from LauncherAppWidgetInfo" into ub-launcher3-calgary
am: 840e1b3a82

* commit '840e1b3a82a1c8dd35d4d16fcf8673fe8a3ca965':
  Removing reference of hostView from LauncherAppWidgetInfo

Change-Id: I214808953830e86db5c4ce429161f64de03e420a
2016-05-17 02:26:01 +00: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 b993ad6ac2 On some "non-standard" devices, load label can cause a security exception due to modified platform code am: 0d86a8dccf -s ours
am: 519a47d5c9

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

Change-Id: I9711c6ce9685c6a32eec186e84bc85323ada5cae
2016-05-16 20:07:49 +00: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 47c86748e1 On some "non-standard" devices, load label can cause a security exception due to modified platform code
am: 0d86a8dccf

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

Change-Id: I7d65f2f39353c50a43334709f8b3bf970969a68c
2016-05-16 19:56:13 +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 c57ae2a1f2 Making the \'Allow rotation\' setting dependent on system state
am: f48e59268b

* commit 'f48e59268bf801cf4f4d1e6715871e14fea31ce3':
  Making the 'Allow rotation' setting dependent on system state

Change-Id: I27e9c2ef596c3beecac30e6f2fce05d67242ec90
2016-05-16 19:14:26 +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 517a99fe79 Call onLauncherTransitionPrepare() and End() from pinch.
am: f898b970cc

* commit 'f898b970cc9130d629d4bc969222aaa96a8a013a':
  Call onLauncherTransitionPrepare() and End() from pinch.

Change-Id: If4d6b6b7eb733f638c541bbb3971aac1c0a07b4e
2016-05-13 00:19:49 +00: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 af114b847e Update page when scrolling/flinging in free-scroll.
am: 8f7ead3e94

* commit '8f7ead3e94d0550beb85b83a8c1d5e78a9abd69f':
  Update page when scrolling/flinging in free-scroll.

Change-Id: I42ebd61a143599b5190c8452620a87f3abc5b993
2016-05-12 23:40:55 +00: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
Hyunyoung Song 4477cf659b Merge "Merge branch \'ub-launcher3-burnaby-nyc\' into launcher3merge am: 8c340dff19 am: 8249b928b7" into nyc-mr1-dev-plus-aosp
am: 3a40216fa0

* commit '3a40216fa0bb303c67730cf263846fd75736a052':

Change-Id: I7c477e7924d9500be1ab2eb7c26a530a45e1cc33
2016-05-12 21:46:47 +00:00
Sunny Goyal f9c36dd2c8 Merge branch \'ub-launcher3-burnaby-nyc\' into launcher3merge am: 8c340dff19 am: 908298f567
am: 2aca1b1820

* commit '2aca1b18207451522a7c78720a97cfb790c345f5':
  Fixing homescreen getting blank when returning from the overlay
  Fixing scrollTo getting called even though the gesture was handled by an overlay
  Adding overlay interaction support
  Cleaning up the overlay interface
  Enable selection action mode for Android M+.
  Fix home button returning to now screen issue
  Fixing bug where the widget background enters into a focused state if a child calls requestFocus in xml
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Return 1f in Log(Ac/De)celerateInterpolators on a 1f input.
  Revert "Calling start/stop listening in onStart/onStop"
  Fix incorrect icon greying on pre-N system
  Setting stable layout flags on the launcher, so that the instets do not change for launcher when going in/out of another app
  Showing a toast when changing wallaper is disabled
  Fix recyclerview res path

Change-Id: I80fbb631c045229b227839631d395c190ce5d3cd
2016-05-12 21:46:47 +00:00
Android Build Merger (Role) 3a40216fa0 Merge "Merge branch \'ub-launcher3-burnaby-nyc\' into launcher3merge am: 8c340dff19 am: 8249b928b7" into nyc-mr1-dev-plus-aosp 2016-05-12 21:44:41 +00:00
Hyunyoung Song 896dd9a122 Merge branch \'ub-launcher3-burnaby-nyc\' into launcher3merge am: 8c340dff19
am: 8249b928b7

* commit '8249b928b78403e887bde2d386594cbd6a2b0f0a':
  Fixing homescreen getting blank when returning from the overlay
  Fixing scrollTo getting called even though the gesture was handled by an overlay
  Adding overlay interaction support
  Cleaning up the overlay interface
  Enable selection action mode for Android M+.
  Fix home button returning to now screen issue
  Fixing bug where the widget background enters into a focused state if a child calls requestFocus in xml
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Return 1f in Log(Ac/De)celerateInterpolators on a 1f input.
  Revert "Calling start/stop listening in onStart/onStop"
  Fix incorrect icon greying on pre-N system
  Setting stable layout flags on the launcher, so that the instets do not change for launcher when going in/out of another app
  Showing a toast when changing wallaper is disabled
  Fix recyclerview res path

Change-Id: I3f65a30f618aa869efc34642242bb7d1c2cb34e9
2016-05-12 21:44:30 +00:00
Hyunyoung Song 2aca1b1820 Merge branch \'ub-launcher3-burnaby-nyc\' into launcher3merge am: 8c340dff19
am: 908298f567

* commit '908298f5675179acf44d325de09cfbf592b1806d':
  Fixing homescreen getting blank when returning from the overlay
  Fixing scrollTo getting called even though the gesture was handled by an overlay
  Adding overlay interaction support
  Cleaning up the overlay interface
  Enable selection action mode for Android M+.
  Fix home button returning to now screen issue
  Fixing bug where the widget background enters into a focused state if a child calls requestFocus in xml
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Return 1f in Log(Ac/De)celerateInterpolators on a 1f input.
  Revert "Calling start/stop listening in onStart/onStop"
  Fix incorrect icon greying on pre-N system
  Setting stable layout flags on the launcher, so that the instets do not change for launcher when going in/out of another app
  Showing a toast when changing wallaper is disabled
  Fix recyclerview res path

Change-Id: I72cb839742495c5272fc24a5c25ead892457e9f7
2016-05-12 21:44:30 +00:00
Sunny Goyal 908298f567 Merge branch \'ub-launcher3-burnaby-nyc\' into launcher3merge
am: 8c340dff19

* commit '8c340dff19dd52c3d8d0a3c39178a9a388e89159':
  Fixing homescreen getting blank when returning from the overlay
  Fixing scrollTo getting called even though the gesture was handled by an overlay
  Adding overlay interaction support
  Cleaning up the overlay interface
  Enable selection action mode for Android M+.
  Fix home button returning to now screen issue
  Fixing bug where the widget background enters into a focused state if a child calls requestFocus in xml
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Return 1f in Log(Ac/De)celerateInterpolators on a 1f input.
  Revert "Calling start/stop listening in onStart/onStop"
  Fix incorrect icon greying on pre-N system
  Setting stable layout flags on the launcher, so that the instets do not change for launcher when going in/out of another app
  Showing a toast when changing wallaper is disabled
  Fix recyclerview res path

Change-Id: I102d05b078b85aae4e7eeb15c919d4aaec280942
2016-05-12 21:42:13 +00:00
Sunny Goyal 8249b928b7 Merge branch \'ub-launcher3-burnaby-nyc\' into launcher3merge
am: 8c340dff19

* commit '8c340dff19dd52c3d8d0a3c39178a9a388e89159':
  Fixing homescreen getting blank when returning from the overlay
  Fixing scrollTo getting called even though the gesture was handled by an overlay
  Adding overlay interaction support
  Cleaning up the overlay interface
  Enable selection action mode for Android M+.
  Fix home button returning to now screen issue
  Fixing bug where the widget background enters into a focused state if a child calls requestFocus in xml
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Return 1f in Log(Ac/De)celerateInterpolators on a 1f input.
  Revert "Calling start/stop listening in onStart/onStop"
  Fix incorrect icon greying on pre-N system
  Setting stable layout flags on the launcher, so that the instets do not change for launcher when going in/out of another app
  Showing a toast when changing wallaper is disabled
  Fix recyclerview res path

Change-Id: If46f540c36af5895a6efb7271fe56aeb7bc60a25
2016-05-12 21:42:13 +00:00