summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* ThemeChooser: Update for Theme api changes.Adnan Begovic2016-03-252-3/+3
| | | | | TICKET: CYNGNOS-2295 Change-Id: I4d0000ed97aedcaa1e91f7be3d55ece78eea0103
* ThemeChooser: update translationsRoman Birg2016-03-2393-99/+2097
| | | | | | | | | | Using commit id 0b505673ed4712822e21189ba1e5810746639d92 as HEAD from ThemeChooser-resources Ticket: RM-214 Change-Id: I28e88b72637d1208df32715561027f5fda48854a Signed-off-by: Roman Birg <roman@cyngn.com>
* Themes: Refactor themes to CMSDK [1/3]d34d2016-03-0411-98/+98
| | | | | 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-125-11/+39
| | | | | | | | | | | | | 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-103-2/+108
| | | | | | | | | | 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-047-42/+48
| | | | | | | | 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-016-15/+135
| | | | | | | | 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-083-8/+75
| | | | | | | | 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-0812-212/+272
| | | | Change-Id: I86e016d139da4adcec3191d982968b7a37f48c19
* Use correct CmLockPatternUtils packageSteve Kondik2015-12-201-1/+1
| | | | Change-Id: I7712c183edcac838edcc703065190c9aa9e9e293
* Live Lock screen selectionLuis Vidal2015-12-194-8/+58
| | | | 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-093-1/+22
| | | | Change-Id: I3aac7a90b7fb41d4d91a00ee09fe361bfb29cbdb
* Add live lock screen support for dogefoodd34d2015-12-089-3/+148
| | | | | | | 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-059-148/+3
| | | | | | This reverts commit 590804752bc280f2905b3bf86b49e467fd0fd610. Change-Id: Ifc42fe865677179d6570d457242c6ee469947afc
* Automatic translation importMichael Bestas2015-10-292-0/+50
| | | | Change-Id: I0c0977ccd571056807b46948675c7901010ebb14
* Automatic translation importMichael Bestas2015-10-292-0/+100
| | | | Change-Id: I6801ce9c65d33ed115995d0d8ac09fb1c189e54b
* Automatic translation importMichael Bestas2015-10-292-0/+89
| | | | Change-Id: Ia06547861da62eca293d165f5d4bfb9220d0f8f2
* Add live lock screen support for dogefoodd34d2015-10-099-3/+148
| | | | | | | 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
* Use DialerNext icon when availabled34d2015-09-251-0/+13
| | | | | Change-Id: I68518d94664f0ab9290e1a7ffb0ca955c5dfbf3a TICKET: CYNGNOS-1096
* Use correct URI for fonts in ThemeFragmentd34d2015-09-161-0/+1
| | | | | | | | | The component selector was fixed to show themes that are only fonts but they could not be selected in the theme fragment since it was still using the PreviewColumns.CONTENT_URI Change-Id: I4d54a8b72255794919e4884ba361c4f996b1af29 TICKET: CHOOSER-98
* Fix audibles not playing in component selectord34d2015-09-151-1/+1
| | | | | Change-Id: I4b6449184047626c45c83ccb2b8394fdc613e70f TICKET: HAM-666
* Use correct URI for fonts in component selectord34d2015-09-151-0/+2
| | | | | | | | | Fonts do not have previews so we need to use ThemesColumns.CONTENT_URI in order to get all installed fonts, otherwise we will only get fonts for themes that have previews, which omits font only themes. Change-Id: I0ccd31c9fecfd9eedb6631a497070e037b8bb52b TICKET: CHOOSER-98
* AppThemer: Remove theme list if non-nulld34d2015-09-151-0/+4
| | | | | Change-Id: I748612eb3e63b81a4d93e8bbd1c8aed22eeb524b TICKET: CHOOSER-96
* Catch exceptions when calling setOverScrollModed34d2015-09-111-0/+11
| | | | | | | | | | Some themes cause the chooser to crash after a theme change which is caused when a ScrollView attempts to set the over scroll mode. LockableScrollView overrides setOverScrollMode and if an exception occurs, sets the mode to OVER_SCROLL_NEVER. Change-Id: I6589f86ebd0ad8522b664a50acf6083875d5f438 TICKET: CYNGNOS-928
* Don't process touch events if being destroyedd34d2015-09-111-0/+2
| | | | | | | | This will prevent a user from releasing the FAB into the delete box and then quickly touch the FAB again, preventing it from being removed. Change-Id: I69eccf6a76534c21ce9800e75fbfd03537bc27d0
* AppThemer: System theme always has overlay for appd34d2015-09-101-8/+12
| | | | | | | | | | Whenever using app themer to switch an app to the system theme, the user is presented with a message stating that this theme does not explicitly overlay the current app. System theme is really an absence of a theme so we should not show this message when applying the system theme to an app. Change-Id: I4087744c325dcd07abffe9a893ecc8fa4c9f1e07
* AppThemer: Don't settle for a null ThemeConfigd34d2015-09-101-2/+10
| | | | | | | | | App themer needs to know what per app overlays are currently applied and that info resides in ThemeConfig so make sure we always have a valid ThemeConfig. Change-Id: I9541a06fd88c91fe950a69df71f8377e8c028ff5 TICKET: HAM-304
* Update Ukranian translationsd34d2015-09-081-3/+3
| | | | | Change-Id: I70e04b78a95d0a43726e4e0c0706e4bf901674f9 TICKET: CYNGNOS-935
* Avoid IllegalStateException in loadStatusBar()d34d2015-09-041-2/+6
| | | | | | | | Check if wifiMarginIdx and clockColorIdx are valid indices and if not use some default values. Change-Id: I97bfc9ab4145d2aaeb155fa4ef77b0312e7431bc REF: CYNGNOS-845
* REAL_GET_TASKS > GET_TASKSAbhisek Devkota2015-09-021-1/+1
| | | | Change-Id: I40cc04f3215a0f84480796379f43db879607d8ff