summaryrefslogtreecommitdiffstats
path: root/src/com
Commit message (Collapse)AuthorAgeFilesLines
...
* App Themer: Observe changes to themes databased34d2015-03-181-5/+33
| | | | | Change-Id: Ib61eedfaa50e9e6cfbba1e51ad4e3cea2b856edc REF: CHOOSER-62
* Don't show install notification for default themed34d2015-03-181-1/+3
| | | | | | | | | | Because of the new flow with the themes provider, we end up getting an ACTION_THEME_INSTALLED broadcast when the default theme gets added to the provider. Once a user gets through OOBE they will see the theme installed notification which is not desirable. Change-Id: Ic6c5d34e452a71c830f56917b235ec9a126d27c3 REF: OPO-131
* BootAni: Recreate bitmap when reusing failsd34d2015-03-181-1/+22
| | | | | | | | | If the inBitmap does not have enough bytes allocated to load in the newly decoded frame an IllegalArgumentException will be thrown. Instead of giving up here we can load in a new image instead. If this fails then we log it and continue as normal. Change-Id: Ibc11cde7aed9633552854a11a50924872a94fa53
* Remove old branding from iconography.Dave Kover2015-03-131-1/+1
| | | | | | | | Update launcher icon and remove the mark. Update ic_themestore to remove the old mark and turn resource into a vector drawable. Fix HDPI notification icon to be correct size. Change-Id: I3f12975a1e510c4e2bdbf668456b5370dcee9bcd
* Use provider's broadcasts for theme installs/removalsd34d2015-03-113-74/+9
| | | | Change-Id: I42f58ef75a45aa131c87baed0d0aeac5763e916c
* Send broadcast when theme chooser opened and theme removedd34d2015-03-111-0/+20
| | | | | | | | | | | | This introduces two new actions that will be broadcasted to the store, or any app that is granted the com.cyngn.themes.permission.THEMES_APP permission, which requires the same signature as the Theme Chooser. If a theme is uninstalled from the chooser, a broadcast is sent along with a String extra with the key "package" that identifies the package name of the theme being removed. Change-Id: I6b3f4e19ebb1b8d763d7e0038591fccbbe1809f2
* Use new RequestType when sending ThemeChangeRequestsd34d2015-03-112-1/+34
| | | | Change-Id: I3fb272c5614c8c61501eb96bee87eee8b9ad0df0
* Set FAB to GONE when showing listd34d2015-03-051-1/+8
| | | | | | | Since the FAB is above the list, it is possible for the user to move the FAB since it is still "VISIBLE" with an alpha of 0. Change-Id: Ib1780d213ecde680e1ba0790447586ac2c6cebe4
* Set min and max height for per app theme ListViewd34d2015-03-043-8/+71
| | | | Change-Id: I76a765fdb4f1efb462230a3b6a20436229d9c485
* Themes: Enhanced theming capabilities [3/3]Clark Scheff2015-02-276-19/+1223
| | | | | | | This is really per-app theming but the subject is being named the same as the open source commits to avoid confusion. Change-Id: I811463be11359d747065ad66f802a55e1ab7db08
* Add better error handling when loading audiblesd34d2015-02-091-7/+12
| | | | | | | | | | | We were checking if the ringtoneUri was null but not if the actual Ringtone returned for that uri was null. This patch handles that case and simply shows the "Add ...." so the user can add a valid audible. Change-Id: I4c2320c6ed7ccd825ffcec411bdffc858b08741e REF:TOMATO-186 (cherry picked from commit 77a2e801640bff65cf7b0d9fadb2364b9531579d)
* Disable launcher icon if Theme Store is installedd34d2015-01-271-0/+42
| | | | | | | | | 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-152-0/+36
| | | | | | | | | 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-0511-62/+18
| | | | 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
* 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-172-0/+10
| | | | | | | | | | 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
* 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
* Disable action buttons when showing an overlayClark Scheff2014-11-112-0/+28
| | | | | 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-092-1/+32
| | | | 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
* 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
* Add resources for all densities (mdpi - xxhdpi)Clark Scheff2014-10-142-4/+4
| | | | 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