Commit Graph

152 Commits

Author SHA1 Message Date
Sunny Goyal e9c897080c Making read permission for android content provider as systemSignature
to prevent unwanted access to user data

Bug: 74360014
Change-Id: I0155c25d91609f4492f56b221c372ec3f51442e3
2018-03-23 14:36:48 -07:00
Sunny Goyal 623eddd7e8 Updating Launcher rotation logic
When auto-rotate is on, launcher allways allows rotation. This allows uses to use
locked rotation feature is available on the device
When auto-rotate is off, workspace does not allow rotation, but overview in quickstep
will allow rotation

Bug: 73872056
Change-Id: Ie12365c268fd5e4958634ed97b5a33dcadc691e2
2018-03-03 00:41:09 -08:00
Sunny Goyal 0ab09fcf7b Deleting sample code demonstrating how to extend Launcher3
Launcher already includes Launcher3Go build flavour and we will
be adding another build flavour for RecentsUI. There is no need
to maintain another build which is not used anywhere.

Change-Id: I9287f62691d57750460ccc9d6859c7fa11c99956
2017-10-30 09:28:03 -07:00
Ng Zhi An d772c0aece Remove stateUnchanged flag from activity
Bug: 65298313
Test: manual
1) Launch messages
2) Tap on FAB to compose new message, IME shows
3) Tap on Home button
4) Verify IME is hidden

Change-Id: I1823e70d49921d2c66b5abd9ce5d45592bde923c
2017-09-27 20:41:20 +00:00
Sunny Goyal de788826d2 Adding a category to indicate that this is a launcher app
Bug: 62959599
Change-Id: Ib0a20829630838671080671cebc1fea2a0f21dd4
2017-08-30 14:57:25 -07:00
Hyunyoung Song 837eb1f47d Change application launcher icons to adaptive icons
b/35429795

Change-Id: I4fa2fb167040c2470c403a293d1a172c276b2f81
2017-03-03 12:48:05 -08:00
Jon Miranda 11f1e4cd96 Update Launcher3 AndroidManifest.xml to match NexusLauncher.
Add stateUnchanged flag to activity windowSoftInputMode.
* Original Change-Id: Iad029d1ce327527ae3933c9eca86474be6ba5aa1

Set resizeableActivity to true to enable multi-window for Launcher.
* Original Change-Id: I2d17c89db2eb8d60b3393c2abc3b026e5574085d

Change-Id: I534f6511e7fd7778cc4469f56527d6452ccbc9a9
2017-02-27 14:32:39 -08:00
Sunny Goyal 1f3f07d47c Simplifying some launcher themes
> Replacing some colors with theme attributes
> Simplifying styles definition by removing unnecessary inheritance and inlining some definitions

Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
2017-02-16 15:24:37 -08:00
Sunny Goyal 4a4b49ff34 Fixing wrong label in the AndroidManifest
Updating the gradle and protobuf library version

Change-Id: I0470ebe7465cf2f04ef59688ac2b3f4933d48ad1
2016-08-25 22:23:06 -07:00
Sunny Goyal e0e0e1d000 Fixing FileLogs tests
During tests, the logs directory is changed. But the active thread
was not getting stopped which was causing some logs to be written
to the old location corresponding to some previous test

Change-Id: I7b8587eae0eb68fa180e3992694cab3745922483
2016-06-07 13:54:50 -07:00
Sunny Goyal d83a67a6b4 Separating out configs and common manifest entries
This separation allows for easier modification of Launcher3
by derivative projects

Change-Id: Ib3469e9b5d2707daef572050698d792316534d45
2016-05-24 14:11:24 -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
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 745bad9da1 Chaning the behavior of settings activity.
> Making all twoState prefs backed by content provider
> Using the stadard intent defined in N for settings
> Using SharedPrefsListener instead of LauncherProvider

Change-Id: I8272f54aa780bc0436e3d0aa89096a4bd2a9194f
2016-05-02 12:00:51 -07:00
Sunny Goyal 46ab2276f9 Removing Launcher broadcast support from Launcher3
Change-Id: Ibaf5fe1465d3858b060fc2958194cf60f22a11db
2016-04-15 13:02:04 -07:00
Sunny Goyal 53b7ce18f4 Removing first launcher broadcast
Change-Id: I225205a219cf2e0f27bb3c78cbdad1a3429d466f
2016-04-14 11:25:56 -07:00
Sunny Goyal 30a716157b Removing WallpaperPicker from Launcher3
Launcher3 will no longer include a wallpaper picker.
Eventually it will just point to the system wallpaper settings where
user can choose from all the installed pickers

Change-Id: Ib5832fa7e451610acd4b2d34ee48fe36e3699d26
2016-04-12 17:59:16 -07:00
Tony Wickham 827cef203f Added ColorExtractionService and ExtractedColors.
- Launcher has an instance of ExtractedColors, which is loaded from
  LauncherProvider in onCreate() and whenever the wallpaper changes.
  - When the wallpaper changes, the ColorExtractionService is started
    in the :wallpaper-chooser process.
  - ColorExtractionService builds an ExtractedColors instance and saves
    it as a String in LauncherProvider.
  - When the results are saved, Launcher gets a callback through
    LauncherProviderChangeListener and reloads the ExtractedColors.
- Whenever Launcher loads Extractecolors, it also re-colors items
  (currently a no-op).

Change-Id: I319e2cfe0a86abcbc6bb39ef6b9fbbcad54ad743
2016-04-01 15:40:57 -07:00
Sunny Goyal bd822508e5 Deleting the WallpaperPicker code inside launcher.
Instead linking it to the packages/apps/WallpaperPicker project

Change-Id: Ib6830b180a22c22afece01e0a4f6e94e89d6452b
2016-02-18 15:09:21 -08:00
Sunny Goyal 5abb9f88ef Separating out Launcher3 resources from Wallpaper resources
Change-Id: I7e33c83df8b16e8552fe588cadbcf3bf7881cb95
2016-02-10 15:11:35 -08:00
Sunny Goyal 041434fb59 Merge "Preventing activity to restart when keyboard is connected or keyboard type changes" into ub-launcher3-burnaby-polish
am: 363da26646

* commit '363da26646b3214a437981fc3ad908ccd363f8f3':
  Preventing activity to restart when keyboard is connected or keyboard type changes
2015-10-16 18:37:37 +00:00
Sunny Goyal 363da26646 Merge "Preventing activity to restart when keyboard is connected or keyboard type changes" into ub-launcher3-burnaby-polish 2015-10-16 18:32:43 +00:00
Sunny Goyal 9a9765924f am 44b48f77: am 28c6b963: Showing a permission prompt for direct call shortcuts
* commit '44b48f77027c386885ed459de501f9d822abac9c':
  Showing a permission prompt for direct call shortcuts
2015-10-14 19:19:24 +00:00
Sunny Goyal 44b48f7702 am 28c6b963: Showing a permission prompt for direct call shortcuts
* commit '28c6b963d4ccac73ab857c839420513dd560945c':
  Showing a permission prompt for direct call shortcuts
2015-10-14 19:16:24 +00:00
Sunny Goyal d9bb1b45e9 Preventing activity to restart when keyboard is connected or keyboard type changes
Bug: 20820889
Change-Id: Ib0b21c04290607ddd67cef2003e6d89f5d6492d8
2015-10-14 11:53:49 -07:00
Sunny Goyal 28c6b963d4 Showing a permission prompt for direct call shortcuts
Bug: 24580949
Change-Id: Idc92f9f5979a730f43b4905af2bc47b6834dc7a7
2015-10-12 11:46:01 -07:00
Sunny Goyal d306055f2d Moving a few testing classes to a separate package
Change-Id: Ied1c063de3e938695493e4937f554686e0719dad
2015-10-07 11:12:38 -07:00
Sunny Goyal e04febbf8e Merge "Moving a few testing classes to a separate package" into ub-launcher3-master 2015-09-21 20:35:29 +00:00
Sunny Goyal 0b15838462 am 830b5e08: Updating the target sdk to launcher
* commit '830b5e08ef8ccc8e4193926ac10ac38cb0ae3e56':
  Updating the target sdk to launcher
2015-08-21 16:47:08 +00:00
Sunny Goyal 830b5e08ef Updating the target sdk to launcher
Change-Id: Icf8e22f6ceb57dcd4e101b8b1d3ae86c52d12b30
2015-08-21 09:26:10 -07:00
Sunny Goyal 322d556220 Moving a few testing classes to a separate package
Change-Id: Ied1c063de3e938695493e4937f554686e0719dad
2015-08-19 13:47:11 -07:00
Sunny Goyal 4b17147c28 Updating logic for setting wallpaper desired size
> Only setting desired size on wallpaper change for pre kitkat
  > Removing wallpaper change receiver from manifest
  > Removing multi-process wallpaper shared prefs for kitkat+

Bug: 23353784
Change-Id: Iba72d32871ee50b75807e2284a73a691bcddc472
2015-08-19 12:59:29 -07:00
Sunny Goyal f485a7e52e am dc352761: Merge "Removing account manager calls" into ub-launcher3-burnaby
* commit 'dc352761ae542087825227d773ec0b039f0aaaf0':
  Removing account manager calls
2015-08-04 23:29:01 +00:00
Sunny Goyal c679ed6233 Removing account manager calls
Change-Id: Ic88139f6ef34046eb3b551d8a75d5f97e1fe3d52
2015-08-04 15:10:12 -07:00
Sunny Goyal 25aba0aea5 Removing boot receiver.
> Registering the receiver at runtime, only when it is required
> Using system property sys.boot_completed to check if boot completion
> This prevents unnecessary process startup during system bootup

Change-Id: I68f99ecf2e1ffd2ca7b6d15a99a282451bf67aec
2015-07-16 15:17:57 -07:00
Sunny Goyal 72db10a93c Moving LauncherExtension to a separate package
Change-Id: I6eef1cbb17295e59eae04f90fa44037be5f7da4b
2015-06-25 18:21:41 -07:00
Adam Cohen 1c5248873a Ensure that Launcher Activity has an exclusive task
-> enforce this at the activity level by giving it an empty affinity
-> the system should probably enforce this, so this is a work around for now

issue 21880868

Change-Id: Iaba4d87781c7fc82ee6c2838c013e01081cdbf9d
2015-06-23 18:08:43 -07:00
Sunny Goyal 7779d62308 Using content provider to update launcher settings
> Removing cross process preference file
> Removed broadcast listener management for settings changes
> Defining content provider method to get/set laucnehr preferences

Change-Id: Ida36eac0ab17c1d48fedc9404817a53a89b36c4f
2015-06-12 11:16:20 -07:00
Sunny Goyal 12e13e467e Removing LauncherApplication to enable us to easily catch LauncherAppState errors
Change-Id: I56e956067692e5b9c4719c5e08b8f558e6011a60
2015-06-04 21:20:08 -07:00
Rahul Chaturvedi 799aa04f2f Use a broadcast receiver instead of a settings observer.
Settings observer doesn't work if a setting is modified in another
process, hence we instead register a receiver which listens for a signal
from the settings process that the rotation preference has changed.

Change-Id: I570e3c67bb64a32347e84ca00a8ac31d9010eac3
2015-06-04 19:17:23 -04:00
Winson Chung 761e820ae2 Enabling resumeWhilePausing for the Launcher activity.
Bug: 21342101
2015-06-01 23:04:33 +00:00
Rahul Chaturvedi 7fc77cad3d Add the Allow Rotation setting to Launcher3.
This CL adds a Settings activity along with the code needed to provide
a "Allow Rotation" setting to all phones and tablets. This setting is
set to false for phones and true for tablets. On changing the setting
from unlocked to locked, the launcher (and the Settings activity)
will get locked to the orientation the user was in when he disabled
"Allow Rotation". This is consistent with how the natural rotation
feature of Android works.

Change-Id: I8a1c59d1fa0bb9262530cad96e0a9bdbab0d9344
2015-06-01 16:50:50 -04:00
Sunny Goyal 1bf0388602 Removing UserInitializeReceiver from manifest as it does not exist
Change-Id: I5f14d93abadfab0bc2822bc0c68648c72b5a082c
2015-04-09 11:18:28 -07:00
Sunny Goyal e9909f58c2 Removing UninstallShortcutReceiver
> Removing support due to its flacky design. Removing a shortcut
causes a full reload. Also we do not have any concept of owner, so
any app can remove any shortcut.

Bug: 11372484
Change-Id: I781c922fac7dc77ea82cd0a2af74a5fca22500de
2015-04-01 10:11:11 -07:00
Sunny Goyal 5319b2bb3b Merge "Removing all dependencies of launcher code on wallpaper-picker" into ub-launcher3-burnaby 2015-03-21 01:19:35 +00:00
Sunny Goyal 6a1e95a3df Removing all dependencies of launcher code on wallpaper-picker
> WallpaperPicker can still depend on launcher code, but not the
other way round.

Change-Id: I93a07f985c3955c638a68a5fad9c09b184a879b9
2015-03-20 18:16:58 -07:00
Sunny Goyal 5b0e669169 Rewrite: Widget preview loader logic
> Widget previews are saved in data dir instead of cache dir
> Expiring widget previews similar to IconCache
> Removed support for setting thread priorities

Bug: 19865031
Change-Id: Ib6033c2b1ff8ae61bba8762ca994ccd8217d3c75
2015-03-20 17:31:11 -07: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
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