OSDN Git Service

android-x86/packages-apps-Taskbar.git
4 years agoExtract method to initialize start button in TaskbarController
utzcoz [Wed, 13 May 2020 08:40:29 +0000 (16:40 +0800)]
Extract method to initialize start button in TaskbarController

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoFix tests of UTest
utzcoz [Wed, 13 May 2020 07:28:39 +0000 (15:28 +0800)]
Fix tests of UTest

Test: ./gradlew test

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoImprove the first-run process for desktop mode if SYSTEM_ALERT_WINDOW wasn't previous...
Braden Farmer [Tue, 12 May 2020 23:23:30 +0000 (17:23 -0600)]
Improve the first-run process for desktop mode if SYSTEM_ALERT_WINDOW wasn't previously granted

4 years agoAdd in safeguards to protect against SecondaryHomeActivity being run on the primary...
Braden Farmer [Tue, 12 May 2020 02:42:00 +0000 (20:42 -0600)]
Add in safeguards to protect against SecondaryHomeActivity being run on the primary display

4 years agoDon't use application context when determining dashboard grid size
Braden Farmer [Tue, 12 May 2020 02:16:17 +0000 (20:16 -0600)]
Don't use application context when determining dashboard grid size

4 years agoFixes for libtaskbar
Braden Farmer [Mon, 11 May 2020 17:12:43 +0000 (11:12 -0600)]
Fixes for libtaskbar

4 years agoSmall fix
Braden Farmer [Mon, 11 May 2020 06:22:19 +0000 (00:22 -0600)]
Small fix

4 years agoAdd libtaskbar demo app
Braden Farmer [Mon, 11 May 2020 05:37:56 +0000 (23:37 -0600)]
Add libtaskbar demo app

4 years agoCode style related cleanup
Braden Farmer [Mon, 11 May 2020 04:07:24 +0000 (22:07 -0600)]
Code style related cleanup

4 years agoTweaks to default preferences + cleanup
Braden Farmer [Mon, 11 May 2020 03:50:03 +0000 (21:50 -0600)]
Tweaks to default preferences + cleanup

4 years agoCouple of desktop mode fixes
Braden Farmer [Mon, 11 May 2020 02:55:35 +0000 (20:55 -0600)]
Couple of desktop mode fixes

4 years agoCleanup
Braden Farmer [Mon, 11 May 2020 02:44:15 +0000 (20:44 -0600)]
Cleanup

4 years agoCatch Throwable instead of Exception when backing up / restoring
Braden Farmer [Sun, 10 May 2020 22:43:17 +0000 (16:43 -0600)]
Catch Throwable instead of Exception when backing up / restoring

4 years agoAdd more SharedPreference keys to Constants.java
Braden Farmer [Sun, 10 May 2020 21:11:08 +0000 (15:11 -0600)]
Add more SharedPreference keys to Constants.java

4 years agoExtract a bunch more SharedPreference keys into Constants.java
Braden Farmer [Sun, 10 May 2020 19:26:23 +0000 (13:26 -0600)]
Extract a bunch more SharedPreference keys into Constants.java

4 years agoAlways enable freeform mode as long as desktop mode is enabled
Braden Farmer [Sun, 10 May 2020 18:25:54 +0000 (12:25 -0600)]
Always enable freeform mode as long as desktop mode is enabled

4 years agoRemove unnecessary annotations
Braden Farmer [Sat, 9 May 2020 18:18:09 +0000 (12:18 -0600)]
Remove unnecessary annotations

4 years agoVerbiage change
Braden Farmer [Sat, 9 May 2020 17:43:43 +0000 (11:43 -0600)]
Verbiage change

4 years agoFix showing / hiding navbar while in desktop mode
Braden Farmer [Sat, 9 May 2020 16:52:08 +0000 (10:52 -0600)]
Fix showing / hiding navbar while in desktop mode

4 years agoRemove @Override annotation for overridden Android 10 method
Braden Farmer [Wed, 6 May 2020 04:33:05 +0000 (22:33 -0600)]
Remove @Override annotation for overridden Android 10 method

4 years agoAdd option to hide app icon labels
Braden Farmer [Sun, 3 May 2020 05:16:11 +0000 (23:16 -0600)]
Add option to hide app icon labels

Resolves #109

4 years agoCompilation fix
Braden Farmer [Sun, 3 May 2020 05:00:07 +0000 (23:00 -0600)]
Compilation fix

4 years agoRevert "Just in case I need this"
Braden Farmer [Sun, 3 May 2020 04:54:34 +0000 (22:54 -0600)]
Revert "Just in case I need this"

This reverts commit f022b8b0d6b4eb43e7155848929ef39bf388d31c.

4 years agoCouple of fixes for default preferences and desktop mode
Braden Farmer [Sun, 3 May 2020 04:54:25 +0000 (22:54 -0600)]
Couple of fixes for default preferences and desktop mode

4 years agoTheming tweaks
Braden Farmer [Tue, 28 Apr 2020 14:23:43 +0000 (08:23 -0600)]
Theming tweaks

4 years agoRetheme the HSLConfigActivity
Braden Farmer [Tue, 28 Apr 2020 06:17:08 +0000 (00:17 -0600)]
Retheme the HSLConfigActivity

4 years agoJust in case I need this
Braden Farmer [Tue, 28 Apr 2020 05:06:19 +0000 (23:06 -0600)]
Just in case I need this

4 years agoAlso apply fix from previous commit to HSLConfigActivity
Braden Farmer [Tue, 28 Apr 2020 04:34:17 +0000 (22:34 -0600)]
Also apply fix from previous commit to HSLConfigActivity

4 years agoCleanup + prevent desktop mode from being disabled after data clear
Braden Farmer [Tue, 28 Apr 2020 04:27:32 +0000 (22:27 -0600)]
Cleanup + prevent desktop mode from being disabled after data clear

4 years ago(Hopefully) better approach for handling default prefs
Braden Farmer [Tue, 28 Apr 2020 02:58:45 +0000 (20:58 -0600)]
(Hopefully) better approach for handling default prefs

4 years agoFix for navbar hiding
Braden Farmer [Mon, 27 Apr 2020 16:27:31 +0000 (10:27 -0600)]
Fix for navbar hiding

4 years agoMore fixes
Braden Farmer [Mon, 27 Apr 2020 15:26:14 +0000 (09:26 -0600)]
More fixes

4 years agoCrash fix
Braden Farmer [Mon, 27 Apr 2020 15:04:04 +0000 (09:04 -0600)]
Crash fix

4 years agoVarious desktop mode fixes
Braden Farmer [Mon, 27 Apr 2020 04:41:43 +0000 (22:41 -0600)]
Various desktop mode fixes

4 years agoFix getThemedIntent()
Braden Farmer [Mon, 27 Apr 2020 04:13:03 +0000 (22:13 -0600)]
Fix getThemedIntent()

4 years agoFix addPreferencesFromResource() override
Braden Farmer [Mon, 27 Apr 2020 03:53:31 +0000 (21:53 -0600)]
Fix addPreferencesFromResource() override

4 years agoFavorite app shortcuts: fix icon sometimes not being initialized when selecting diffe...
Braden Farmer [Sun, 26 Apr 2020 20:27:57 +0000 (14:27 -0600)]
Favorite app shortcuts: fix icon sometimes not being initialized when selecting different app

4 years agoCleanup unused imports
Braden Farmer [Fri, 24 Apr 2020 04:32:03 +0000 (22:32 -0600)]
Cleanup unused imports

4 years agoFix compilation errors
Braden Farmer [Fri, 24 Apr 2020 04:29:44 +0000 (22:29 -0600)]
Fix compilation errors

4 years agoMove cachedRotation into TaskbarPosition class
Braden Farmer [Fri, 24 Apr 2020 04:22:19 +0000 (22:22 -0600)]
Move cachedRotation into TaskbarPosition class

4 years agoCleanup theming-related code
Braden Farmer [Fri, 24 Apr 2020 04:17:50 +0000 (22:17 -0600)]
Cleanup theming-related code

4 years agoUse static imports of Constants wherever possible
Braden Farmer [Thu, 23 Apr 2020 05:15:21 +0000 (23:15 -0600)]
Use static imports of Constants wherever possible

4 years agoMinor cleanup
Braden Farmer [Thu, 23 Apr 2020 04:54:24 +0000 (22:54 -0600)]
Minor cleanup

4 years agoMerge TaskbarIntent and SharedPreferenceConstant into single Constants class
Braden Farmer [Thu, 23 Apr 2020 04:52:03 +0000 (22:52 -0600)]
Merge TaskbarIntent and SharedPreferenceConstant into single Constants class

4 years agoFix crashes caused by previous commit
Braden Farmer [Wed, 22 Apr 2020 20:33:48 +0000 (14:33 -0600)]
Fix crashes caused by previous commit

4 years agoMerge pull request #107 from RaspberryPiFan/master
Braden Farmer [Wed, 22 Apr 2020 07:14:32 +0000 (01:14 -0600)]
Merge pull request #107 from RaspberryPiFan/master

Update some german strings

4 years agoUpdate some german strings
RaspberryPiFan [Wed, 22 Apr 2020 06:57:13 +0000 (08:57 +0200)]
Update some german strings

4 years agoFix defaults for certain preferences not being respected
Braden Farmer [Wed, 22 Apr 2020 04:49:43 +0000 (22:49 -0600)]
Fix defaults for certain preferences not being respected

4 years agoAdd back missing string
Braden Farmer [Wed, 22 Apr 2020 04:09:22 +0000 (22:09 -0600)]
Add back missing string

4 years agoMerge pull request #106 from RaspberryPiFan/master
Braden Farmer [Wed, 22 Apr 2020 04:08:47 +0000 (22:08 -0600)]
Merge pull request #106 from RaspberryPiFan/master

Update german translation

4 years agoPrepare for merging PR
Braden Farmer [Wed, 22 Apr 2020 04:08:32 +0000 (22:08 -0600)]
Prepare for merging PR

4 years agoManifest sync up + couple more tweaks for Chrome OS
Braden Farmer [Tue, 21 Apr 2020 23:02:58 +0000 (17:02 -0600)]
Manifest sync up + couple more tweaks for Chrome OS

4 years agoAdd support for desktop icons on Chrome OS when Taskbar is set as home screen
Braden Farmer [Tue, 21 Apr 2020 20:02:09 +0000 (14:02 -0600)]
Add support for desktop icons on Chrome OS when Taskbar is set as home screen

4 years agoUpdate german translation
RaspberryPiFan [Tue, 21 Apr 2020 14:13:23 +0000 (16:13 +0200)]
Update german translation

4 years agoString tweaks
Braden Farmer [Tue, 21 Apr 2020 05:24:55 +0000 (23:24 -0600)]
String tweaks

4 years agoDon't show option to clear desktop icons data if desktop icons aren't available
Braden Farmer [Mon, 20 Apr 2020 19:06:27 +0000 (13:06 -0600)]
Don't show option to clear desktop icons data if desktop icons aren't available

4 years agoAdd option to clear quick settings data
Braden Farmer [Mon, 20 Apr 2020 18:26:50 +0000 (12:26 -0600)]
Add option to clear quick settings data

4 years agoImprove reliability of updating quick settings tiles
Braden Farmer [Mon, 20 Apr 2020 17:33:16 +0000 (11:33 -0600)]
Improve reliability of updating quick settings tiles

4 years agoFix minor spelling errors
Braden Farmer [Sun, 19 Apr 2020 05:10:17 +0000 (23:10 -0600)]
Fix minor spelling errors

4 years agoMerge pull request #105 from utzcoz/master
Braden Farmer [Sun, 19 Apr 2020 04:59:14 +0000 (22:59 -0600)]
Merge pull request #105 from utzcoz/master

Add some unit tests for ui package

4 years agoEnable system theme on Android 9 as well due to night mode being a developer option
Braden Farmer [Sun, 19 Apr 2020 04:53:42 +0000 (22:53 -0600)]
Enable system theme on Android 9 as well due to night mode being a developer option

4 years agoImplement system dark mode support for Android 10
Braden Farmer [Sat, 18 Apr 2020 15:54:34 +0000 (09:54 -0600)]
Implement system dark mode support for Android 10

4 years agoAdd some unit tests for ui package
utzcoz [Sat, 18 Apr 2020 06:52:20 +0000 (14:52 +0800)]
Add some unit tests for ui package

Test: run ./gradlew test and all tests passed.

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoImplement threading for icon generation
Braden Farmer [Sat, 18 Apr 2020 04:03:32 +0000 (22:03 -0600)]
Implement threading for icon generation

4 years agoFinish up custom icons support for quick settings shortcuts (minus one TODO)
Braden Farmer [Sat, 18 Apr 2020 03:39:33 +0000 (21:39 -0600)]
Finish up custom icons support for quick settings shortcuts (minus one TODO)

4 years agoOops
Braden Farmer [Fri, 17 Apr 2020 23:54:18 +0000 (17:54 -0600)]
Oops

4 years agoBump number of tiles from three to five
Braden Farmer [Fri, 17 Apr 2020 23:24:09 +0000 (17:24 -0600)]
Bump number of tiles from three to five

4 years agoRevert "Only support Persistent Shortcuts on Android 9.0+"
Braden Farmer [Fri, 17 Apr 2020 23:19:00 +0000 (17:19 -0600)]
Revert "Only support Persistent Shortcuts on Android 9.0+"

This reverts commit eb62b4f5420b2fba2c481c36fd4751243c333a70.

4 years agoAdd AFW support to shortcuts + more progress on custom icons
Braden Farmer [Fri, 17 Apr 2020 23:18:45 +0000 (17:18 -0600)]
Add AFW support to shortcuts + more progress on custom icons

4 years ago[WIP] Custom icons for quick settings shortcuts
Braden Farmer [Fri, 17 Apr 2020 19:50:17 +0000 (13:50 -0600)]
[WIP] Custom icons for quick settings shortcuts

4 years agoRemove a debugging feature for TouchAbsorberActivity
Braden Farmer [Thu, 16 Apr 2020 20:24:29 +0000 (14:24 -0600)]
Remove a debugging feature for TouchAbsorberActivity

4 years agoAlways open Persistent Shortcuts in a new window
Braden Farmer [Thu, 16 Apr 2020 19:11:42 +0000 (13:11 -0600)]
Always open Persistent Shortcuts in a new window

4 years agoOnly support Persistent Shortcuts on Android 9.0+
Braden Farmer [Wed, 15 Apr 2020 19:47:18 +0000 (13:47 -0600)]
Only support Persistent Shortcuts on Android 9.0+

4 years agoCreate Jacoco build type for tests to run under
Braden Farmer [Tue, 14 Apr 2020 05:41:48 +0000 (23:41 -0600)]
Create Jacoco build type for tests to run under

4 years agoOnly start desktop mode if launcher is default
Braden Farmer [Tue, 14 Apr 2020 05:16:20 +0000 (23:16 -0600)]
Only start desktop mode if launcher is default

4 years agoMerge pull request #104 from utzcoz/master
Braden Farmer [Tue, 14 Apr 2020 04:09:45 +0000 (22:09 -0600)]
Merge pull request #104 from utzcoz/master

Add unit tests for widget package

4 years agoSplit FavoriteAppTileService into three separate tiles
Braden Farmer [Mon, 13 Apr 2020 20:22:50 +0000 (14:22 -0600)]
Split FavoriteAppTileService into three separate tiles

4 years agoFix launchModes for the Persistent Shortcuts activities
Braden Farmer [Mon, 13 Apr 2020 19:56:21 +0000 (13:56 -0600)]
Fix launchModes for the Persistent Shortcuts activities

4 years agoAdd unit tests for widget package
utzcoz [Mon, 13 Apr 2020 14:40:17 +0000 (22:40 +0800)]
Add unit tests for widget package

Test: run ./gradlew test and all tests passed.

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoExpose BitmapDrawable as the return type for IconCache.getIcon()
Braden Farmer [Mon, 13 Apr 2020 12:08:31 +0000 (06:08 -0600)]
Expose BitmapDrawable as the return type for IconCache.getIcon()

4 years agoImplement favorite app quick settings tile
Braden Farmer [Mon, 13 Apr 2020 12:07:54 +0000 (06:07 -0600)]
Implement favorite app quick settings tile

4 years agoMerge pull request #103 from utzcoz/master
Braden Farmer [Mon, 13 Apr 2020 10:55:27 +0000 (04:55 -0600)]
Merge pull request #103 from utzcoz/master

Add many unit tests for util package

4 years agoAdd unit tests for AppEntry and Blacklist
utzcoz [Mon, 13 Apr 2020 07:47:20 +0000 (15:47 +0800)]
Add unit tests for AppEntry and Blacklist

Test: ./gradlew test and all tests passed.

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoAdd unit tests for DashboardHelper and DesktopIconInfo
utzcoz [Mon, 13 Apr 2020 07:21:26 +0000 (15:21 +0800)]
Add unit tests for DashboardHelper and DesktopIconInfo

Test: ./gradlew test and all tests passed.

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoAdd unit tests for FABWrapper and FreeformHackHelper
utzcoz [Mon, 13 Apr 2020 06:40:16 +0000 (14:40 +0800)]
Add unit tests for FABWrapper and FreeformHackHelper

Test: run ./gradlew test and all tests passed.

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoSwitch a couple of intents over to TaskbarIntent constants
Braden Farmer [Mon, 13 Apr 2020 06:16:14 +0000 (00:16 -0600)]
Switch a couple of intents over to TaskbarIntent constants

4 years agoAdditional logic for enabling certain preferences when desktop mode is enabled
Braden Farmer [Mon, 13 Apr 2020 06:12:01 +0000 (00:12 -0600)]
Additional logic for enabling certain preferences when desktop mode is enabled

4 years agoAdd unit tests for IconPackManager
utzcoz [Mon, 13 Apr 2020 04:55:47 +0000 (12:55 +0800)]
Add unit tests for IconPackManager

Test: run ../gradlew test and all tests passed.

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoAdd unit tests for LauncherHelper and MenuHelper
utzcoz [Mon, 13 Apr 2020 03:42:28 +0000 (11:42 +0800)]
Add unit tests for LauncherHelper and MenuHelper

Test: run ./gradlew test, and all tests passed.

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoAdd unit tests for PinnedBlockedApps
utzcoz [Sun, 12 Apr 2020 16:05:32 +0000 (00:05 +0800)]
Add unit tests for PinnedBlockedApps

Test: run ./gradlew test, and all tests passed.

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoAdd unit tests for SavedWindowSize
utzcoz [Sun, 12 Apr 2020 15:41:32 +0000 (23:41 +0800)]
Add unit tests for SavedWindowSize

Test: run ./gradlew test, and all tests passed.

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoAdd unit tests for ToastFrameworkImplTest
utzcoz [Sun, 12 Apr 2020 15:12:41 +0000 (23:12 +0800)]
Add unit tests for ToastFrameworkImplTest

Test: run ./gradlew test, and all tests passed.

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoAdd unit tests for TopApps
utzcoz [Sun, 12 Apr 2020 15:00:10 +0000 (23:00 +0800)]
Add unit tests for TopApps

Test: run ./gradlew test and all tests passed.

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoImplement density + navbar hiding preferences for desktop mode
Braden Farmer [Sun, 12 Apr 2020 05:54:51 +0000 (23:54 -0600)]
Implement density + navbar hiding preferences for desktop mode

4 years agoCleanup static imports
Braden Farmer [Sun, 12 Apr 2020 05:04:42 +0000 (23:04 -0600)]
Cleanup static imports

4 years agoMerge pull request #102 from utzcoz/master
Braden Farmer [Sun, 12 Apr 2020 04:54:03 +0000 (22:54 -0600)]
Merge pull request #102 from utzcoz/master

Add many unit tests for U.java

4 years agoAdd many unit tests for U methods
utzcoz [Fri, 10 Apr 2020 07:32:38 +0000 (15:32 +0800)]
Add many unit tests for U methods

In robolectric, it needs FLAG_NEW_TASK for starting outer Activity,
so appending it to U.java.

And powermock can't process code such like:

Runnable runnable = new Runnable() {
    @Override
    public void run() {}
}

or

Runnable runnable = () -> {}

So just adding a new implementation of Runnable for test.

Also extracting SP_KEY_POSITION and SP_KEY_ANCHOR to
SharedPreferenceConstant.java.

Test: run ./gradlew test, and all tests passed.

Signed-off-by: utzcoz <utzcoz@outlook.com>
4 years agoAdd some plumbing for getting the current & default DPI of the external display
Braden Farmer [Sat, 11 Apr 2020 05:32:50 +0000 (23:32 -0600)]
Add some plumbing for getting the current & default DPI of the external display

4 years agoAdding a quick TODO
Braden Farmer [Sat, 11 Apr 2020 03:46:31 +0000 (21:46 -0600)]
Adding a quick TODO

4 years agoOnly allow primary launcher to be defined if desktop mode is enabled
Braden Farmer [Sat, 11 Apr 2020 03:30:56 +0000 (21:30 -0600)]
Only allow primary launcher to be defined if desktop mode is enabled