summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* use F-Droid and only F-Droid for searching themesWolfgang Wiedmeyer2017-02-181-9/+2
| | | | Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* ThemeChooser: Fix possible IllegalArgumentExceptionMichael W2016-10-281-3/+12
| | | | | | | | | onResume will always register the listener, no matter if it's already been registered. Add a variable to track, if the listener has been registered already. Change-Id: I294c5ab1d8dd2b12ad744bc87127a38939c4e30e Reference: BugDumps 20161021-27 L#67
* Remove BootReceiverClark Scheff2016-09-041-56/+0
| | | | | | | This receiver is no longer necessary Change-Id: I50f33a9e696db0f7e84f1e78849a0ca1e57f4c97 TICKET: NIGHTLIES-3335
* Move actions in theme card to overflow menuBharadwaj Narasimha2016-09-034-99/+37
| | | | | | | | | Moved the customize,delete and reset in the title card to an overflow menu to free up some space in the title card for the theme and author names. TICKET:CYNGNOS-3279 Change-Id: I0c4defd82369e4840efac420b1629493b280b168
* Fall cleaningd34d2016-08-3123-93/+84
| | | | | | | | | | | | | | | | * Change package name to org.cyanogenmod.theme.chooser2 to avoid theme collisions with old OSS chooser * Change parent theme to Theme.Material.Light * Change minSdkVersion to 21 since we are going material * Add selectors for bottom action buttons (app themer, shop themes) * Add selector, using app themer color, for app themer list view * Add selector for actions in theme cards * Bring back OSS app icon * Reduce log spam in ThemedTypefaceHelper * Localize "new" tag using a TextView instead of an image * Other random stuff Change-Id: I73ef0b9c9370284e29ee00add87273cf54c83e0e
* Theme chooser for the peopleClark Scheff2016-08-2837-211/+658
| | | | | | | Let freedom ring! Change-Id: I12b3e6b5d46eb2e13afd841dfd5c215af64188d8 TICKET: OSS-67
* ThemeFragment: Changing theme component resets per app themesBharadwaj Narasimha2016-07-291-2/+6
| | | | | | | | | Changing particular components like default icons,fonts,in case of mixnmatch will reset the per app themes applied to the default values. Change-Id: I1d2699232c3c96ad9a35f01c7d96c6aa3578e2de TICKET: CYNGNOS-2867
* Check for system alert window permissiond34d2016-07-051-6/+28
| | | | | | | | | | It is possible that the user disables theme chooser from being able to draw on top of other applications. If this happens theme chooser will crash due to a security exception. This patch checks that we still have the permission and if not, requests it from the user. Change-Id: Ic4fc12293d4fa2c544d2e54ed8279dc07d7493f6 TICKET: CYNGNOS-3141
* Don't show apply fab if applying from 3rd party appd34d2016-05-201-1/+1
| | | | | | | | | | When applying components via a third party app, like the Theme Store, the appy fab would appear. This patch checks if we are appying a theme from a third party app and does not show the FAB in this scenario. Change-Id: Idedc920eeb975d96b66bcc73c88fa9acfe6bfd49 TICKET: CYNGNOS-2906
* Avoid IAE when adding an already added clientd34d2016-05-172-2/+10
| | | | | | | | | | This is a weird state and although I don't know how it can happen, there have been logs showing this happening so we can at least do our best to avoid the exception by catching it and carrying on since the exception means our client has already been added. Change-Id: Ibf3e9b798d0193d5701e508821bad09fca822a45 TICKET: CYNGNOS-2853
* Check if theme is applying in onResumed34d2016-05-061-1/+3
| | | | | | | | Make sure mThemeChanging reflects what the ThemeManager returns from isThemeApplying() Change-Id: I4c3d2bac7b48d173a3f3c376971339e127d3476b TICKET: FEIJ-443
* Avoid using equals() on a possibly null actiond34d2016-04-281-1/+1
| | | | | | | | Use the string constant instead to check if action is equal to ACTION_PICK_LOCK_SCREEN_WALLPAPER Change-Id: If5d565644eb7c41eb25638025ffccf9a252b34fd TICKET: CYNGNOS-2611
* Fix applying themes from third party apps (ThemeStore)d34d2016-04-261-2/+2
| | | | | | | | | The permission check was using a string constant in the source file rather than import the cmsdk Manifest and use the permission constants defined there. Change-Id: Id8017dfb9dc77fe8df7e3b0f87009bae8c050108 TICKET: CYNGNOS-2596
* Avoid potential NPE in getThemeChangeRequestForComponentsd34d2016-04-121-1/+5
| | | | | Change-Id: I64dbe4d62ab652c014b2087fd1f72096a677de70 TICKET: CYNGNOS-2406
* Add ModLock option in lock screen pickerd34d2016-03-282-7/+31
| | | | | | | | This will intent out to the live lock screen settings so the user can pick a live lock screen (ModLock) Change-Id: Ia5bf5a6961ca2a50032cea2da5355e3fae7ae37a TICKET: CYNGNOS-2301
* Add pick lock screen wallpaper actiond34d2016-03-285-42/+24
| | | | | | | | This action will be used to launch the ThemeChooser into the current theme and show the lock screen wallpaper card. Change-Id: Ifffcd86c57b5e96a967d23287504cdd632793e9b TICKET: CYNGNOS-2296
* ThemeChooser: Update for Theme api changes.Adnan Begovic2016-03-252-3/+3
| | | | | TICKET: CYNGNOS-2295 Change-Id: I4d0000ed97aedcaa1e91f7be3d55ece78eea0103
* Themes: Refactor themes to CMSDK [1/3]d34d2016-03-0410-95/+95
| | | | | Change-Id: I441bb8de266fedec1988dd908f7f2864f90adf0a TICKET: CYNGNOS-2126
* Show FAB when an external image or None is selectedLuis Vidal2016-03-013-14/+40
| | | | | | | | | Fix to show the FAB when an external image or None is selected from the Wallpaper or Lockscreen cards. Change-Id: I911b4374ddc80186ee2699e8782d6e5ca48ee32f TICKET: CHOOSER-116 TICKET: CHOOSER-117
* Reuse space view when availabled34d2016-02-221-5/+14
| | | | | | | | | The additional Space we add to the additional cards layout was being created and added multiple times. We should be re-using it if it is already in the parent layout. Change-Id: Idfbb7889836175c39408bead193ea6125e124e69 TICKET: CYNGNOS-2117
* Show the apply icon when a theme component is changedLuis Vidal2016-02-223-21/+94
| | | | | | | | | | | | | To improve the ThemeChooser UX, the apply icon will now be displayed when the user makes a change in the component selector, rather than waiting until user presses the back button. The icon will remain visible even if the user jumps between components cards, as long as there's at least one change to apply. The icon will be dismissed if the user reverts the changes by selecting the currently applied components. Change-Id: I3cdde376a89d4456a2f68ca7957cc8e1db7c27e9 TICKET: CYNGNOS-2077
* Fix Lock Screen card scroll animationLuis Vidal2016-02-161-2/+4
| | | | | | | | | | | | | The lock screen card is being pushed to the top of the screen during the scroll animation and then slid down (to make sure the whole card is visible) if the device has hardware buttons. This patch will make sure the UX is the same across all devices. The card will be positioned in the middle of the screen once the animation is complete. Change-Id: Ic24c638dfa90f5f58424bc931eb5235befd31880 TICKET: CHOOSER-114
* Allow FittedTextView to control whether text should be expandedLuis Vidal2016-02-152-2/+10
| | | | | | | | | | | A new API setAutoExpand has been introduced to allow subclasses to control whether the text should be expanded to fill out the view. This is particulary useful to instruct the class not to resize the text if it fits 'as is' keeping the original font size Change-Id: Ie23d2b2f6f5c31fa7befe602e1bfc441c614ec72 TICKET: CHOOSER-115
* Use Lato font on Animated Lock Screen thumbnail textLuis Vidal2016-02-122-5/+28
| | | | | | | | | | | | | To be consistent with the rest of the text views in the chooser, we need to use Lato font on the animated lock screen thumbnail (rather than Roboto as initially requested). In order to reuse as much code as possible, LatoTextView is now extending FittedTextView. A new attribute 'autoFitText' is introduced to instruct whether fitted text is desired. Change-Id: I3209fe7f06177bc4025cbf964d0c2dd79325b9c0 TICKET: CHOOSER-113
* Clear out previous theme component when changing themesd34d2016-02-123-42/+85
| | | | | | | | | | When we change to a different theme or reset the current theme, we need to make sure we un-apply components that are not part of the theme being applied/reset, unless the user customized the theme. This also applies for resetting a theme. Change-Id: I295c082d10929b6f99af7ebc5d6a2dd123fcf64a TICKET: CYNGNOS-1847 OPO-430
* Return SYSTEM_DEFAULT for applied theme when config is nulld34d2016-02-111-4/+4
| | | | | | | | | | | If ThemeConfig is null we can assume that no theme is applied and therefore the System theme should be considered the currently applied theme. The ThemeConfig would be non null on first run of the theme chooser if the device's default theme, which is not System, is applied via OOBE. Change-Id: I3d913b1c9f2fee4b1b954fb4148441256be08eec TICKET: CYNGNOS-1947
* Enable Live Lock screen if Animated lock screen is appliedLuis Vidal2016-02-101-2/+102
| | | | | | | | | | Live lock screen will be enabled if user picks an animated lock screen from the chooser. User will be presented with a dialog to enable LLS. If user decides not to enable LLS, the animated lock screen won't be applied. Change-Id: I5d14dd138e3e3f0e83e1dd08d75c8543131cc430 TICKET: CYNGNOS-1932
* Stop using ThemeUtils.getDefaultThemePackageNamed34d2016-02-086-10/+31
| | | | | | | | ThemeUtils still uses Settings instead of CMSettings, and it can't since it is in frameworks core :( Change-Id: Ia504fdb8b5648db672d455ec0d214ad25b7ba24d Ticket: CYNGNOS-1912
* Restore the selected components in the chooserLuis Vidal2016-02-051-5/+12
| | | | | | | | | | | | If the user makes a chance to the currently applied theme, but then it abandons the change, the map that contains the currently selected components is wiped out. This patch will restore the map to its original state so all the currently selected components are properly highlighted in the component cards if the user decides to go back and make changes to the currently applied theme Change-Id: Ia7f38491ce9b2c2f7cae7dae8cf1f5d241391096 TICKET: OPO-467
* Rebadge 'Live' in theme chooser to 'Animated'Luis Vidal2016-02-042-2/+8
| | | | | | | | Replaces the static red ribon with a text view so the label can be translated. Default text is set to 'ANIM' Change-Id: Ic701d28bfd20568419a4ea2063ee208210037389 TICKET: CYNGNOS-1688
* Add PICK_ANIMATED_LOCK_SCREEN actionLuis Vidal2016-02-015-15/+131
| | | | | | | | This patch is to instruct the chooser to jump directly to the live lock screen selector if PICK_ANIMATED_LOCK_SCREEN action is sent Change-Id: I1d1df7df2d0d903841c5408bd138e81350327baa TICKET: CYNGNOS-1707
* Don't show add icon when user selects NoneLuis Vidal2016-01-222-1/+13
| | | | | | | | This patch prevents the add ("+") icon from being displayed on the lock screen card when user selects None. Change-Id: Icd5a86ddcbf00765bc1844c2f78b6188d2706be5 TICKET: CHOOSER-107
* Don't select a null component typed34d2016-01-211-8/+10
| | | | | | | | | If the componet being passed into setComponentType is null, then just return as there is nothing to do with it. TICKET: CYNGNOS-1675 Change-Id: I9f3c95dffcbb3b4f08d114f4fe864cdb379ff79a
* Fix to display Live Lock Screen previewLuis Vidal2016-01-194-13/+60
| | | | | | | | | | | If current theme has a LLS, we need to get the path from the provider and manually load the bitmap (WallpaperManager will return a Drawable only for lock wallpaper) This patch also prevents two titles from being highlighted in the lock screen selector when a package contains a static wallaper AND a live lock screen Change-Id: I6e8312e7a6e15dfff930de23c3a24afa74df43d1 TICKET: CHOOSER-106
* Disable live lock screenLuis Vidal2016-01-181-18/+33
| | | | | | | | Fix to disable a previously enabled live lock screen if a static wallpaper or none is selected Change-Id: Ib0e130e31326b5717ba87a4464a8dae950eb5f64 TICKET: CYNGNOS-1580
* Register/Unregister observer on window visibility changed34d2016-01-181-0/+13
| | | | | | | | | | | | | If the ThemeChooser is in a paused state, the ThemeObserver in the component selector will still fire off when a theme is added or removed. This causes an NPE when the loader is restarted. This patch unregisters the content observer when the window is no longer visible and then re-registers it once the window is visible again. Change-Id: I628b269eb95a7fb521470ff3b33845086ee30461 TICKET: CHOOSER-108
* Fix to highlight the title of currently applied LLS in the selectorLuis Vidal2016-01-142-2/+9
| | | | | | | | | | Lock Wallpaper and LLS are sharing the same card, but the card is identified as the lock wallpaper component. We need to pass the package name of the LLS so it can be properly highlighted in the selector. TICKET: CHOOSER-110 Change-Id: Ie438d9fe4e114ab8e37c319fbb3fd95402605b0f
* Request READ_EXTERNAL_STORAGE permissiond34d2016-01-081-6/+71
| | | | | | | | This bumps the target SDK up to 23 and gracefully handles getting the required permissions from the user. Change-Id: I66e0d8f4e6f28039811636e3684b2eb7c2bba336 TICKET: CYNGNOS-1565
* Show lock screen wallpapers & live lock screens in the same selectorLuis Vidal2016-01-084-126/+230
| | | | Change-Id: I86e016d139da4adcec3191d982968b7a37f48c19
* Use correct CmLockPatternUtils packageSteve Kondik2015-12-201-1/+1
| | | | Change-Id: I7712c183edcac838edcc703065190c9aa9e9e293
* Live Lock screen selectionLuis Vidal2015-12-192-8/+22
| | | | Change-Id: Ie1a13d9775e85b61c611ee6037856fef1578c4a8
* Request permissions to live lock screenLuis Vidal2015-12-182-0/+120
| | | | Change-Id: I2eeabec8ba812379b81968f38116e5147280d68d
* Set live lock screen as keyguard when appliedd34d2015-12-091-0/+20
| | | | Change-Id: I3aac7a90b7fb41d4d91a00ee09fe361bfb29cbdb
* Add live lock screen support for dogefoodd34d2015-12-084-3/+98
| | | | | | | The final UX will combine both static lock screen wallpapers and the new live lock screen with a banner indicating which are "live" Change-Id: I26fc793930316296178437d1d98e6e645e17b7e5
* Use CMSettings for DEV_FORCE_SHOW_NAVBARd34d2015-11-121-2/+3
| | | | Change-Id: I6a729010205387e496915777c935f25c9af1a485
* Build for cm-13.0d34d2015-11-052-4/+6
| | | | Change-Id: I6244e18717fae13c5698408ee0b8f5b9109dd988
* Revert "Add live lock screen support for dogefood"d34d2015-11-054-98/+3
| | | | | | This reverts commit 590804752bc280f2905b3bf86b49e467fd0fd610. Change-Id: Ifc42fe865677179d6570d457242c6ee469947afc
* Add live lock screen support for dogefoodd34d2015-10-094-3/+98
| | | | | | | The final UX will combine both static lock screen wallpapers and the new live lock screen with a banner indicating which are "live" Change-Id: I26fc793930316296178437d1d98e6e645e17b7e5
* Use correct DialtactsActivity for DialerNextd34d2015-09-301-1/+1
| | | | | | | DialerNext uses a different package name but the activity is still part of com.android.dialer Change-Id: I20af2ca6c57a46070de125db2c9f7fbb575a267f
* Check index when populating supported componentsd34d2015-09-281-1/+1
| | | | Change-Id: I32c21254f0c8797e6ff7ee48992994271d8f6d21