summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Automatic translation importMichael Bestas2014-09-291-0/+21
|/ | | | Change-Id: Idf96f739fdb76a1e4034afbed9d90fa769d656b9
* Automatic translation importstaging/cm-12.0-cafstaging/cm-12.0Michael Bestas2014-08-2339-39/+39
| | | | Change-Id: I30d66dfb9f16f0e192a409e3e28df00b03ad24df
* Automatic translation importMichael Bestas2014-07-241-0/+21
| | | | Change-Id: I80d67843d1ad7c56480e00cdfef33d98f10bf906
* Automatic translation importMichael Bestas2014-07-112-0/+42
| | | | Change-Id: Iad0eaf8f1ed72f805d5061ea51949657a7f5e81c
* Themes: Only reapply fonts, icons and overlaysAndy Mast2014-07-071-12/+18
| | | | | | | | | | | | | | | The provider and WP service can be out of sync. This is possibly by applying a theme and then separately going in and changing the WP. Prior to this patch, an updated theme would trigger all set theme elements to be reapplied, including the wallpaper of the set theme, even if the user had changed the WP to something else. The issue has been resolved by only applying theme elements which: (1) do not pose a risk of being out of sync in the provider (2) must be reapplied so as to not cause a FC. Change-Id: I00f12952a5ef040e8f368d0fade222a3e88d003e
* Modify config to support app specific themes [3/4]Clark Scheff2014-07-013-5/+5
| | | | | | See frameworks/base commit for full msg. This is just simple renaming. Change-Id: If7011a93d60197b2879028902f8e9a190bac147d
* Don't call insertCapabilities for legacy icon packs.Clark Scheff2014-06-301-3/+0
| | | | Change-Id: Ib10a6888259a4da7a2341dc738dc91d0a1839392
* Revert "Reapply theme components in a runnable."Clark Scheff2014-06-301-17/+6
| | | | | | This reverts commit 92f77e77e097e59f9ec8d7bc64324f1987230af6. Change-Id: I79a7beedb43d097e743a41b0501805cd1afad9d4
* Revert "Listen for ACTION_PACKAGE_BEING_REMOVED"Clark Scheff2014-06-302-2/+2
| | | | | | This reverts commit 13b9a546c7dee1ca588ef7cbb2f643df85f8f0a0. Change-Id: Id560c730957484f2ae693f63b4597f275e44aaff
* Automatic translation importMichael Bestas2014-06-291-1/+1
| | | | Change-Id: I05d09af62f1013fa03df61969428208d5cb00c8a
* Define reapply delay as a constantClark Scheff2014-06-261-1/+3
| | | | Change-Id: Ifc606b5ca07efeaef428edb7bd464cabcbe5c474
* Reapply theme components in a runnable.Clark Scheff2014-06-261-6/+15
| | | | | | | | | | | | We need to give other apps a chance to finish processing the ACTION_PACKAGE_REPLACED before reapplying the updated theme components. An example of this behavior can be seen when a legacy icon pack is applied and is updated. Some Google services, such as google play, FC when this happens. Change-Id: If526223e6d318b4240fa765abb53dbe61f9ce746
* Automatic translation importMichael Bestas2014-06-232-1/+22
| | | | Change-Id: Iff1e157a03ba5e2335d55cfb75c2962d5511c060
* Reapply theme components when theme updated.Clark Scheff2014-06-221-0/+22
| | | | Change-Id: Ia841ae6ef466e0b60016fab47abfe4c1089cc902
* Make sure to update theme capabilities.Clark Scheff2014-06-191-16/+18
| | | | Change-Id: I42970fd98e629bde8f32d698b67892ba7b8e6965
* Automatic translation importMichael Bestas2014-06-122-0/+2
| | | | Change-Id: I3d8ee2920861a04e551bc632f2aff48b0733fe7b
* ThemesProvider: Fix query compilation errorfuzz2014-06-111-1/+1
| | | | | | | | | | This fixes syntax error when excute the SELECT Clause 06-11 13:45:39.370: E/AndroidRuntime(3359): java.lang.RuntimeException: Unable to start receiver org.cyanogenmod.themes.provider.AppReceiver: android.database.sqlite.SQLiteException: near "?": syntax error (code 1): , while compiling: SELECT pkg_name FROM themes WHERE (pkg_name?) Change-Id: If9857b1db447e8752ddf04ce3f7d2cc84d5b28a5
* Merge "Insert instead of update if theme doesn't exist" into cm-11.0Andy Mast2014-06-101-1/+23
|\
| * Insert instead of update if theme doesn't existAndy Mast2014-06-081-1/+23
| | | | | | | | | | | | | | This handles the case where an app is being upgraded and previously was not a theme. and therefore wasn't in the provider. Change-Id: I7b3f64aed2b78081822cb0f9daf0cbd638e0b15b
* | When applied theme is removed, revert to defaultAndy Mast2014-06-051-1/+2
| | | | | | | | | | | | | | Fixes issue where fonts and other resources do not get reverted properly when an applied theme is uninstalled. Change-Id: I30c9ea018f8bffc6aff51c5b38ff1e4ec82b7b20
* | Cleanup cached preview images on uninstallAndy Mast2014-06-043-37/+91
|/ | | | Change-Id: I9267a160fbabeb67ade2f18fdaf8d8c6acc539da
* Merge "Themes: Add read/write permissions [2/2]" into cm-11.0Abhisek Devkota2014-05-271-0/+2
|\
| * Themes: Add read/write permissions [2/2]Andy Mast2014-05-231-0/+2
| | | | | | | | Change-Id: Ie41b1605b5773d651b8ef8f3162791fef5c78cfc
| * Merge remote-tracking branch 'github/cm-11.0' into HEADBrint E. Kriebel2014-05-2234-24/+797
| |\
| * \ Merge remote-tracking branch 'github/cm-11.0' into HEADBrint E. Kriebel2014-05-206-25/+180
| |\ \
| * | | Fix NPE if themeContext is nullDirk Rettschlag2014-05-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When installing a new theme it sometimes happens that the ThemesProvider crashes due to a NullPointerException in hasThemeComponent(...) when executing AssetManager assetManager = themeContext.getAssets(); Don't silently catch the NameNotFoundException and return an empty map. Change-Id: I9d7bf8f79b9c38cd5da668a7fcf205406ffdd79c Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com> (cherry picked from commit dda7d285c2b77770d09ad2abaf4fa09f909d4636)
* | | | Merge "Fix NPE if themeContext is null - round 2" into cm-11.0Abhisek Devkota2014-05-261-1/+2
|\ \ \ \
| * | | | Fix NPE if themeContext is null - round 2Dirk Rettschlag2014-05-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a theme is uninstalled and timing is perfect, it can happen that the CopyImageService is trying to get the PackageContext of a not existing package. Return from the function if a NameNotFoundException is catched. Change-Id: I8f4e33d527f78228f9681ac518292364e9269a0c Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
* | | | | Automatic translation importMichael Bestas2014-05-253-0/+63
| |_|_|/ |/| | | | | | | | | | | Change-Id: I4afb8ee9e6ac3f3f11ff95427bb789f2ee7018c8
* | | | Standardize preview images.Clark Scheff2014-05-222-24/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Themes can contain a preview image for wallpaper, lockscreen, and styles. These can be either .png or .jpg and use the following naming conventions: wallpaper -> assets/images/wallpaper_preview.[png|jpg] lockscreen -> assets/images/lockscreen_preview.[png|jpg] styles -> assets/images/styles_preview.[png|jpg] Change-Id: Ibe441abf941e8b995c94eb43f6c6f237758d914b
* | | | Automatic translation import Michael Bestas2014-05-2132-0/+670
| |_|/ |/| | | | | | | | Change-Id: Idc73415b665b719cba153929000cc960993241d9
* | | Properly handle updating holo theme.Clark Scheff2014-05-191-8/+23
| | | | | | | | | | | | Change-Id: I157e597ee53894b1237c05dd2000b1da957b1968
* | | CM11 Themes: Allow defining a custom default theme [2/3]Clark Scheff2014-05-183-16/+78
| | | | | | | | | | | | Change-Id: I94521a09339fb760b7a56b9a3ba3d2c56e2d3ac5
* | | Merge "Listen for ACTION_PACKAGE_BEING_REMOVED" into cm-11.0Clark Scheff2014-05-182-2/+2
|\ \ \
| * | | Listen for ACTION_PACKAGE_BEING_REMOVEDClark Scheff2014-05-162-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requires http://review.cyanogenmod.org/#/c/64139/ This will allow us to handle changing back to the default theme for any components that are using the package about to be removed. Some apps may crash if the them resources are removed before we change the theme back. Change-Id: If1778ea4dd3be86af21479f12e75d22083e168ef
* / / Themes: Support launcher based icon packs [2/2]Andy Mast2014-05-174-3/+68
|/ / | | | | | | | | | | | | | | | | Before this patch, icon packs written for Trebuchet/Nova/Apex could not be used with the new theme engine as the formats were different. For full description, see [1/2] in frameworks/base Change-Id: Ifaec3c4b459a74eab19c69a086e117b96aeb3e0f
* | Fix NPE if themeContext is nullDirk Rettschlag2014-05-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | When installing a new theme it sometimes happens that the ThemesProvider crashes due to a NullPointerException in hasThemeComponent(...) when executing AssetManager assetManager = themeContext.getAssets(); Don't silently catch the NameNotFoundException and return an empty map. Change-Id: I9d7bf8f79b9c38cd5da668a7fcf205406ffdd79c Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
* | Include alarms in mixnmatch.Clark Scheff2014-05-101-1/+14
|/ | | | Change-Id: I11a63b665550fc7f8f89df837ab0fc8ebcd2c8d3
* Theme Chooser: Initial Contribution [2/2]Andy Mast2014-05-0611-0/+1120
| | | | | | | | | | | | | | | | Introduces a new theme chooser UI for the new theme engine. The new theme chooser allows the user to mix'n'match theme components (styles, boot anim, icons, fonts, wallpapers, sounds). Contributors: Adrian Foulk - UX Lead Andrew Mast - Software Engineer Clark Scheff - Software Engineer RJ Oakes - QA Engineer Special thanks to T-Mobile for open sourcing the original theme engine. Change-Id: Ifdcc0655ae4125ba3287c5c82fbe852840b3625d
* EMPTYAndy Mast2014-05-011-0/+0