Commit Graph

164 Commits

Author SHA1 Message Date
Sunny Goyal eaf7a95546 Changing minimum supported Launcher version to 26
Change-Id: I49fcf874430ac53c3246371e179fbd828e14e4da
2020-07-29 17:30:19 -07:00
Winson Chung 0c2b05947e Handle uiMode changes
- Launcher already dedupes if there are no theme changes

Bug: 148988542
Test: adb shell cmd uimode car yes/no, adb shell cmd uimode night yes/no
Change-Id: Ia83f02d18a0433c8be59d1f488e58b38476ba5ff
2020-07-21 17:20:53 +00:00
Ashwini Oruganti aa902e859b Add an exported flag in manifest
With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for future versions. This change adds the value reflecting the
previous default to the manifest.

These changes were made using an automated tool, the xml file may be
reformatted slightly creating a larger diff. The only "real" change is
the addition of "android:exported" to activities, services, and
receivers that have one or more intent-filters.

Bug: 150232615
Bug: 158198882
Test: TH
Exempt-From-Owner-Approval: mechanical refactoring
Change-Id: I083a7bcab968c881f7cdff7152a249691ffac316
2020-06-23 13:58:18 -07:00
Sunny Goyal f5577b1117 Changing target sdk to Q
Change-Id: I9c2ac12d81d3b04e1a29f6c2a1f2e32fff76de7f
2019-05-17 23:19:58 -07:00
TreeHugger Robot eefa08b8be Merge "Fix grid options provider metadata" into ub-launcher3-master 2019-01-29 22:28:44 +00:00
Santiago Etchebehere 339de9dda9 Fix grid options provider metadata
The actual authority is {packagename}.grid_control.

Bug: 122262084
Change-Id: I5552ccdb818efa49900409035e41505ed2f7687b
2019-01-29 14:15:15 -08:00
Sunny Goyal 8c48d8bea6 Changing min sdk to 25
Change-Id: I0d28069967854357ca755bf25dec19d4979bdecf
2019-01-29 11:29:52 -08:00
Sunny Goyal 6dda58a31b Adding meta-data for grid options provider
Bug: 122262084
Change-Id: I4b07f17eb9bad351a48e2d612159fbe2d33cf1dd
2019-01-24 15:40:55 -08:00
Hyunyoung Song ddcecfa634 System apps must target API 28 or higher
Bug: 120997004
Change-Id: I998a443a4327c47cbab8e4bc4843be1693f05d8d
2019-01-03 12:57:33 -08:00
Sunny Goyal 7f920b8d5e Cleaning up build rules to simplify customizing derivative projects
> Using {packageName} instead of hardcoding com.android.launcher3 in AndroidManifest.xml
  for strings which are dependent on packageName
> Adding proguard rule to prevent obfuscating any overridable class
> Making it easier to extend SettingsActivity by overriding the fragment class

Change-Id: I5668c3f33b4cf20ad01d7f54b3d79cc0d268d391
2018-07-02 11:16:04 -07:00
Sunny Goyal bd88f396dc Defining a base theme, which can be overriden by derivative projects without
affecting launcher theme

Bug: 70220582
Change-Id: Ie3069686be5e6a42910e90541db2d6b5b79e25c1
2018-06-08 11:20:01 -07:00
Sunny Goyal f5c5d04b3b Preventing activity restoart on mnc/mcc changes
Bug: 77651657
Change-Id: I68a6995d57da4b3c43c1ecd78deda40c78934533
2018-05-18 13:46:15 -07:00
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