summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Disable launcher icon if Theme Store is installedd34d2015-01-272-6/+61
| | | | | | | | | This allows us to have one apk that can have a launcher icon if the Theme Store is not installed and if it is installed we can disable the theme chooser launcher icon. REF: CHOOSER-28 Change-Id: Id4c81ea7f68aa1491370d70fa29f3b5097e94488
* Iterate over mSelectedComponentsMap for getComponentsToApplyd34d2015-01-241-2/+2
| | | | | | | | | | | If mSelectedComponentsMap has a component that is not in mCurrentTheme it will not get added to componentsToApply and therefore will not be applied. We now iterate over mSelectedComponentsMap and add any component that is from a different package than mCurrentTheme or if that component does not exist in mCurrentTheme Change-Id: I2df1c06a8de807c63425fa15d7605db34026b32d REF:CHOOSER-27
* Add legacy theme tag and warning messageClark Scheff2015-01-159-0/+68
| | | | | | | | | This adds a tag at the top of any theme that is designed for an older version of CM and presents the user with a message in the apply overlay when they go to apply a theme designed for an older version of CM. Change-Id: I7d60f14cbfc376890e06dbf1358745e4490be961
* Show user's current battery styleClark Scheff2015-01-082-2/+4
| | | | Change-Id: I1c9fa43d7be1a6e59703f45559aa0944a5ae7e90
* Fix mix and match in MyThemeFragmentClark Scheff2015-01-071-1/+1
| | | | | | | | The map being returned from getComponentsToApply was setting the key as the value and the value as the key which causes no changes to be made when applying the theme. Change-Id: Ic4491d3c7c39ebef78717ab5cdfcd8d1e5759cc0
* Get working on CM12Clark Scheff2015-01-0518-68/+26
| | | | Change-Id: Id9d08836456685912b5f75a1acd0a8992e8b6b47
* Don't animate in views if theme is applying from storeAndy Mast2014-12-041-10/+11
| | | | | | | | | | An NPE will occur if a theme which is already applied is being applied again from the store. What happens is a component view (eg styles) is being loaded and and asked to animate, but the view itself does not have a drawable cache yet. REF: CHOOSER-9 Change-Id: If3d1df1f00097335de03a77dda73325b2b424977
* Allow loaders to finish if expanded and activity resumingClark Scheff2014-12-011-1/+3
| | | | | Change-Id: I7df5fc5bef723d6d1c8602ff03350f31978b20ff REF:TOMATO-662
* Allow custom wallpapers to be picked multiple times in a rowd34d2014-11-291-1/+2
| | | | | Change-Id: I3d731ccb6ab4e24d654f2a03ceb8ce55e879abdb REF: CHOOSER-6
* Revert "Fix theme installed notification not showing up"d34d2014-11-222-8/+47
| | | | | | | | | | | | | | This reverts commit a4d0390b36adc5089b1819712de7c6d7b78ac54f. We ned to keep track of themes that are installed and being processed by the theme service. Themes are processed on boot and can cause false positives if we assume receiving this broadcast constitutes a theme being installed. The root cause for not showing install notifications was due to the Set being null when the preference for themes being processed does not exist. We correct this by create a new Set if it is null. Change-Id: I1e762abb6248b282f076a1cf014fc7864f6ce0a3
* MyThemeFragment should only be applying changed componentsClark Scheff2014-11-212-10/+24
| | | | | | | | | | | | The current logic sends all the comonents to the theme service, even when only one or two components changed in the MyThemeFragment. This patch will create a map of only the components that changed and pass those onto the ThemeService. This patch also fixes the issue with fillMissingComponentsWithDefault which should only be used for applying full themes. Change-Id: Id47e771e58afd6d2f5065820617b0c56cecc2405
* Handle applying specified components of a themeClark Scheff2014-11-203-7/+31
| | | | | | | | | If a 3rd party app, such as the Theme Store, passes in a list of components to apply for a given theme the chooser will only apply those components to the currently applied theme. Change-Id: Ie3b702e076b3382ad5364eabd77cb3eba8854462 REF: TSC-18
* Allow applying theme components to current themeClark Scheff2014-11-203-65/+159
| | | | | | | | | When a third party app requests a theme to be applied and the theme is not a complete pack the various components of that pack will be applied to the currently applied theme. Themes that are flagged as PRESENT_AS_THEME will be applied as a whole. Change-Id: If49afc47ff87d8ced3f5218cc7ac26736eae96eb
* Update ic_notify to new paint bucket design.d34d2014-11-204-0/+0
| | | | | Change-Id: Ia1cc37655f9cb5a555701dd90f906daff0502231 REF: CHOOSER-1
* Fix theme installed notification not showing upClark Scheff2014-11-202-46/+8
| | | | | Change-Id: I80a2a9002544be3a2336820f5c2f8b470713ddd2 REF: THEMES-428
* Bootanimations: Skip over bad partsd34d2014-11-191-3/+14
| | | | | | | | | It is possible there are still some good parts to play so we continue on to the next line. If we end up with no parts that were good it will be caught in parseAnimation() Change-Id: Ib6a9c132c3cda7cedd5670fd2f00582642f09e1e REF: THEMESTORE-406
* Exclude wallpaper and lockscreen wallpaper from fillMissingComponentsWithDefaultd34d2014-11-171-4/+2
| | | | Change-Id: Ib802b6f3770fae0f15692b111c77ae7eeb242bfb
* Fix enabling and disabling of wallpaper cardsd34d2014-11-171-2/+2
| | | | Change-Id: I9501bbc28b88f33fef343b3d2050348389e49c96
* Do not play "click" sound when apply/reset dialog is shownAndy Mast2014-11-173-2/+29
| | | | | | | | | | Clicking around the apply/reset dialog was causing the click sound to be played even though nothing was happening. The solution was to disable ComponentCards when not expanded and to have the ThemePager only play click events when the clickview's sounds are enabled. Change-Id: I6a7ae2afd33e3fc72aa53052233c8e4117d089c2 REF: THEMES-423
* Fix task behavior for ThemeStore/Chooser [1/3]Andy Mast2014-11-172-3/+35
| | | | | | | | | | | | | | | | | | | 1. Launcher OverviewSettingsPanel -> Themes: Launch Chooser, do not show in recents 1.1. From chooser, if user clicks "Shop Themes", Store should open in a new task and launching chooser again from store shoul 2. Settings -> Themes: Launch Chooser, do not show in recents 3. Launcher Appdrawer -> Themes: Launch Theme Store, show in recents 4. In the case of #1 and #2, if the user proceeds to launch the store via "Shop Themes" then the store should open in a new task and be included in recents. 5. Do not show "Shop themes" when chooser is launched from the store. This avoids a navigation cycle. SEE ALSO: Settings & Trebuchet Change-Id: I597cf81f89494ccce46e1b2496ae16a4d93ac707
* Change themes icon [2/2]Andy Mast2014-11-134-0/+0
| | | | Change-Id: I5f14ed59c5eb23bb32408499225dcd271835d767
* Don't add default wallpapers if external images are selectedClark Scheff2014-11-131-0/+8
| | | | | | | | | | External wallpapers are set from within the chooser and therefore not added to the components map. Because of this, if we add in the missing wallpaper from the default theme we will override this behavior and the user will not get their custom wallpaper. Change-Id: I8a897e6851039eaee502736bef98b93f827e952a REF: THEMES-420 and THEMES-421
* Set lockscreen wallpaper to none if theme does not have oneClark Scheff2014-11-131-13/+24
| | | | | | | | Now that we strip the paint and add in any missing items from the default theme, we need to set the lockscreen to none if it is not included in the theme. Change-Id: I265c6e7b99c501ad342199c96728a644f6cf9c8d
* Show chooser as Theme Chooser instead of ThemesClark Scheff2014-11-111-1/+1
| | | | | | | | Theme store now shows up as Themes and when the user is in settings->apps they see "Themes" listed twice. This will allow the user to tell the difference and avoid confusion. Change-Id: Icdda028103382200285f470f9b98c70a9befb2d2
* Disable action buttons when showing an overlayClark Scheff2014-11-113-1/+30
| | | | | Change-Id: Ib04be04925f6528ef8bba824fa6f01ab88acff0e REF: THEMES-413
* Extra error handling for boot animationsd34d2014-11-102-16/+80
| | | | | | | This will help in identifying themes that have issues with their boot animation by providing logs describing what is wrong and why. Change-Id: I994a18fc4ecafddb9cc397e600c1fb336706f07a
* Allow Other Apps To Apply Themes through ChooserAndy Mast2014-11-093-1/+36
| | | | Change-Id: Ifc8115b9bb0320af1c51141c4516b0399583c32e
* Use default if theme is missing a componentAndy Mast2014-11-091-1/+18
| | | | Change-Id: Ic3de7c86d1362be02dcba0447c0d0b3ccdd5d0a0
* Fix NPE in Sounds Component SelectorAndy Mast2014-11-061-1/+4
| | | | Change-Id: If7b14fdeb324e0e72da171b11bd5ce06665027ed
* Reset applied base theme to default when applied theme uninstalledClark Scheff2014-10-301-5/+11
| | | | | | | | | | Since we keep track of the currently applied base theme in our preferences, we need to update it to the default system theme if the currently applied base theme is uninstalled. This fixes THEMES-391 Change-Id: Ic07cc9f933fcb4e7a5aa8ebef7f102dc815673ed
* Add cyngn.intent.category.APP_THEMES intent filterClark Scheff2014-10-301-0/+5
| | | | | | | This allows us to implicitly launch the theme chooser from other apps without using the package name and class. Change-Id: I6788cce3cb407313ad7a95c9b4787cc5c3e07645
* Use new package name for Theme StoreClark Scheff2014-10-302-5/+2
| | | | Change-Id: Iee1c5d651584f317eb561a27a250fa8a60980eaa
* Don't crash with invalid boot animationsSteve Kondik2014-10-251-0/+4
| | | | | | | | * The result of parsing the boot image can be empty or null. This may be because Tomato is 720p. * Add a check instead of crashing in your face. Change-Id: I26f50406793aac0d3d8e0a335b050acdb9e26e05
* Add better handling of themes that are being processed by ThemeManagerClark Scheff2014-10-181-22/+40
| | | | Change-Id: I02b3b034091bd1323857d112fd4bcd50dd8e0617
* Remove LAUNCHER categoryClark Scheff2014-10-151-1/+0
| | | | Change-Id: Ic0426a92534bd1338eba7e50048fd58adf5b4f8d
* Add resources for all densities (mdpi - xxhdpi)Clark Scheff2014-10-1489-9/+6
| | | | Change-Id: Ib8083902ee07a891f41479e6085fc0263512f011
* Wait for fragment to collapse before restarting a loaderClark Scheff2014-10-141-61/+55
| | | | | | | | | | | Bad things happen when a theme is expanded and a new theme is installed and added to the view pager. This patch sets a flag that lets the ChooserActivity know it should restart the loader once the fragment is collapsed. Once the fragment is collapsed the loader will be restarted and new themes will be added to the view pager. Change-Id: I2b5fe64782ce278b7e8b09e4ff24755faa080bec
* Destroy loader when done loading componentsClark Scheff2014-10-091-1/+8
| | | | | | | | | | | | | | A strange bug was uncovered where items keep loading into the selector which causes many duplicates. Once we load the data we can simply destroy the loader so we will not get any further updates. The root cause appears to be caused by the post processing of themes in the ThemeService. The ThemesProvider listens for changes to theme resources and updates the preview blobs which triggers the loaders to be triggered. Change-Id: Ifbeddadd2cd47d0f04755036fbb432d0fafb3df2
* Only update wallpaper if fragment visible or not applying a themeClark Scheff2014-10-081-10/+16
| | | | | Change-Id: I956d3821457e52157bb6f106ab9fcf87cbb51d98 REF: THEMES-377
* Don't update selection if user clicks on currently selected itemClark Scheff2014-10-081-1/+2
| | | | | | | | | | When the user clicks on a component that is currently selected, the listener is called and the card animates the changes even though nothing really changed. This patch makes sure the listener is only called when the item clicked on is not the currently selected item. Change-Id: I669ce730420b1a83212725c91926242cf2f06fb9
* Highlight selected component not applied componentClark Scheff2014-10-084-21/+70
| | | | | | | | | | This patch makes it so the currently selected component shown in the card is highlighted in the component selector. For the current theme this will initially be the applied components and for other themes this will be their own component selected until the user selects a different component. Change-Id: Ied851d425decdd04c5e8d38567f2b079807fb520
* Open new Theme Store when clicking shop themesClark Scheff2014-10-081-1/+1
| | | | Change-Id: I67e5d4bd2519ba459319f836709836e44bb33f94
* Don't restart loader if component did not changeClark Scheff2014-10-081-3/+3
| | | | | | | | This fixes THEMES-375 where the items in the component selector would be duplicated if the user switched to another theme but selected the same component type, i.e. wallpaper. Change-Id: I2c29c95e7735bc8f680a6e3d149041b66fd8067d
* Hide delete action for default and system themesd34d2014-10-031-0/+4
| | | | Change-Id: Ib4db9adf214b2047307e8d2ea804319eaf08f3c5
* Add handling of themes that are being processedClark Scheff2014-10-038-3/+156
| | | | | | | | | | | | When a theme is still being processed by the ThemeService we show a "processing" overlay to let the user know their theme is not quite ready to be applied. Once the theme is done processing the overlay fades out and the user can apply the theme. We also do not show the "theme installed" notification for a theme that is being processed until it is finished processing. Change-Id: I0486da3a5e2d0b55c2b3828613ace7e2ccf460a2
* Make sure the adapter has content when getting current fragmentClark Scheff2014-09-251-1/+1
| | | | Change-Id: I1b0ccb0a81c3c12d9d453bd8ccb348dcceb3ba8d
* Replace option menu with reset/delete actionsClark Scheff2014-09-2513-3/+74
| | | | | | | | The code and xml for the popup menu are still in place for future use. The image view for the menu is simply set to View.GONE so it will not be available to the user at this time. Change-Id: I7897e1c06532c51d6be82edca3bb76c37acbf9ae
* Repurpose apply theme layout for deleting themesClark Scheff2014-09-2511-63/+162
| | | | | | | | The apply theme overlay is now the ConfirmCancelOverlay. It has been generalized so that it can be used for the delete theme confirmation overlay as well as the apply theme overlay. Change-Id: I9ea352291c44ba2fb453ea7325e3d8f0bce46fe4
* Add clearWallpaper method to WallpaperCardViewClark Scheff2014-09-233-0/+10
| | | | Change-Id: Ied9340da61cd92199957d8510bfdf5bb3604c58e
* Only restart loader in onResume if not expandedClark Scheff2014-09-232-2/+5
| | | | Change-Id: I72649e1690767ab2f1b5a5558c8e54d770ebe12e