diff options
author | Allan Wang <me@allanwang.ca> | 2018-10-08 01:06:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-08 01:06:44 -0400 |
commit | 81518f74fa76b6c2274a0e02ad4169f5d7f61e59 (patch) | |
tree | 8af3ed7f0fecad644a4a3c485cac760968ae8b2b /adapter/src/main/kotlin/ca | |
parent | 4029fb9ab284f56f5dc838399fe38c42cb93c708 (diff) | |
download | kau-81518f74fa76b6c2274a0e02ad4169f5d7f61e59.tar.gz kau-81518f74fa76b6c2274a0e02ad4169f5d7f61e59.tar.bz2 kau-81518f74fa76b6c2274a0e02ad4169f5d7f61e59.zip |
Update translations (#169)
* New translations strings_about.xml (Polish)
* New translations strings_commons.xml (Hebrew)
* New translations strings_commons.xml (Tagalog)
* New translations strings_commons.xml (Swedish)
* New translations strings_commons.xml (Serbian (Cyrillic))
* New translations strings_commons.xml (Russian)
* New translations strings_commons.xml (Romanian)
* New translations strings_commons.xml (Portuguese, Brazilian)
* New translations strings_commons.xml (Portuguese)
* New translations strings_commons.xml (Norwegian)
* New translations strings_commons.xml (Korean)
* New translations strings_commons.xml (Japanese)
* New translations strings_commons.xml (Italian)
* New translations strings_commons.xml (Hungarian)
* New translations strings_commons.xml (Greek)
* New translations strings_commons.xml (German)
* New translations strings_commons.xml (Galician)
* New translations strings_commons.xml (French)
* New translations strings_commons.xml (Finnish)
* New translations strings_commons.xml (English)
* New translations strings_commons.xml (Dutch)
* New translations strings_commons.xml (Czech)
* New translations strings_commons.xml (Chinese Traditional)
* New translations strings_commons.xml (Chinese Simplified)
* New translations strings_commons.xml (Catalan)
* New translations strings_commons.xml (Arabic)
* New translations strings_commons.xml (Afrikaans)
* New translations strings_colorpicker.xml (Ukrainian)
* New translations strings_commons.xml (Ukrainian)
* New translations strings_mediapicker.xml (Ukrainian)
* New translations strings_mediapicker.xml (Tagalog)
* New translations strings_mediapicker.xml (Swedish)
* New translations strings_mediapicker.xml (Serbian (Cyrillic))
* New translations strings_mediapicker.xml (Russian)
* New translations strings_mediapicker.xml (Romanian)
* New translations strings_mediapicker.xml (Portuguese, Brazilian)
* New translations strings_mediapicker.xml (Portuguese)
* New translations strings_mediapicker.xml (Norwegian)
* New translations strings_mediapicker.xml (Korean)
* New translations strings_mediapicker.xml (Japanese)
* New translations strings_mediapicker.xml (Italian)
* New translations strings_mediapicker.xml (Hungarian)
* New translations strings_commons.xml (Vietnamese)
* New translations strings_mediapicker.xml (Hebrew)
* New translations strings_mediapicker.xml (Greek)
* New translations strings_mediapicker.xml (German)
* New translations strings_mediapicker.xml (Galician)
* New translations strings_mediapicker.xml (French)
* New translations strings_mediapicker.xml (Finnish)
* New translations strings_mediapicker.xml (English)
* New translations strings_mediapicker.xml (Dutch)
* New translations strings_mediapicker.xml (Czech)
* New translations strings_mediapicker.xml (Chinese Traditional)
* New translations strings_mediapicker.xml (Chinese Simplified)
* New translations strings_mediapicker.xml (Catalan)
* New translations strings_mediapicker.xml (Arabic)
* New translations strings_mediapicker.xml (Afrikaans)
* New translations strings_colorpicker.xml (Tagalog)
* New translations strings_mediapicker.xml (Polish)
* New translations strings_about.xml (English)
* New translations strings_about.xml (Portuguese, Brazilian)
* New translations strings_about.xml (Portuguese)
* New translations strings_about.xml (Norwegian)
* New translations strings_about.xml (Korean)
* New translations strings_about.xml (Japanese)
* New translations strings_about.xml (Italian)
* New translations strings_about.xml (Hungarian)
* New translations strings_about.xml (Hebrew)
* New translations strings_about.xml (Greek)
* New translations strings_about.xml (German)
* New translations strings_about.xml (Galician)
* New translations strings_about.xml (French)
* New translations strings_about.xml (Finnish)
* New translations strings_about.xml (Dutch)
* New translations strings_about.xml (Russian)
* New translations strings_about.xml (Czech)
* New translations strings_about.xml (Chinese Simplified)
* New translations strings_about.xml (Catalan)
* New translations strings_about.xml (Arabic)
* New translations strings_about.xml (Afrikaans)
* New translations strings_mediapicker.xml (Danish)
* New translations strings_commons.xml (Danish)
* New translations strings_colorpicker.xml (Danish)
* New translations strings_about.xml (Danish)
* New translations strings_mediapicker.xml (Spanish)
* New translations strings_commons.xml (Spanish)
* New translations strings_about.xml (Spanish)
* New translations strings_about.xml (Chinese Traditional)
* New translations strings_about.xml (Romanian)
* New translations strings_about.xml (Serbian (Cyrillic))
* New translations strings_colorpicker.xml (Swedish)
* New translations strings_colorpicker.xml (Serbian (Cyrillic))
* New translations strings_colorpicker.xml (Russian)
* New translations strings_colorpicker.xml (Romanian)
* New translations strings_colorpicker.xml (Portuguese)
* New translations strings_colorpicker.xml (Japanese)
* New translations strings_colorpicker.xml (Hebrew)
* New translations strings_colorpicker.xml (Greek)
* New translations strings_about.xml (Swedish)
* New translations strings_colorpicker.xml (Arabic)
* New translations strings_about.xml (Tagalog)
* New translations strings_about.xml (Ukrainian)
* New translations strings_about.xml (Vietnamese)
* New translations strings_colorpicker.xml (Afrikaans)
* New translations strings_colorpicker.xml (Catalan)
* New translations strings_colorpicker.xml (Chinese Traditional)
* New translations strings_colorpicker.xml (Czech)
* New translations strings_colorpicker.xml (Dutch)
* New translations strings_colorpicker.xml (English)
* New translations strings_colorpicker.xml (Finnish)
* New translations strings_mediapicker.xml (Vietnamese)
* New translations strings_commons.xml (Danish)
* New translations strings_about.xml (Swedish)
* New translations strings_about.xml (Ukrainian)
* New translations strings_colorpicker.xml (Swedish)
* New translations strings_colorpicker.xml (Ukrainian)
* New translations strings_commons.xml (Swedish)
* New translations strings_commons.xml (Ukrainian)
* New translations strings_mediapicker.xml (Swedish)
* New translations strings_mediapicker.xml (Ukrainian)
* Delete empty files
* Optimize all source files
Diffstat (limited to 'adapter/src/main/kotlin/ca')
3 files changed, 6 insertions, 7 deletions
diff --git a/adapter/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt b/adapter/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt index c3a1c61..870861d 100644 --- a/adapter/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt +++ b/adapter/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt @@ -172,7 +172,8 @@ class ThemableIItemDelegate : ThemableIItem, ThemableIItemColors by ThemableIIte @RequiresApi(Build.VERSION_CODES.LOLLIPOP) override fun bindBackgroundRipple(vararg views: View?) { val background = backgroundColor ?: return - val foreground = accentColor ?: textColor ?: backgroundColor ?: return //default to normal background + val foreground = accentColor ?: textColor ?: backgroundColor + ?: return //default to normal background val ripple = createSimpleRippleDrawable(foreground, background) views.forEach { it?.background = ripple } } diff --git a/adapter/src/main/kotlin/ca/allanwang/kau/animators/KauAnimator.kt b/adapter/src/main/kotlin/ca/allanwang/kau/animators/KauAnimator.kt index 9e52aac..7b9b732 100644 --- a/adapter/src/main/kotlin/ca/allanwang/kau/animators/KauAnimator.kt +++ b/adapter/src/main/kotlin/ca/allanwang/kau/animators/KauAnimator.kt @@ -14,8 +14,7 @@ open class KauAnimator( val changeAnimator: KauAnimatorChange = FadeAnimatorChange() ) : BaseItemAnimator() { - open fun startDelay(holder: RecyclerView.ViewHolder, duration: Long, factor: Float) - = Math.max(0L, (holder.adapterPosition * duration * factor).toLong()) + open fun startDelay(holder: RecyclerView.ViewHolder, duration: Long, factor: Float) = Math.max(0L, (holder.adapterPosition * duration * factor).toLong()) override fun removeAnimation(holder: RecyclerView.ViewHolder): ViewPropertyAnimator { return holder.itemView.animate().apply { @@ -30,8 +29,7 @@ open class KauAnimator( holder.itemView.apply { removeAnimator.animationCleanup(holder)() } } - override fun getRemoveDelay(remove: Long, move: Long, change: Long): Long - = removeAnimator.getDelay(remove, move, change) + override fun getRemoveDelay(remove: Long, move: Long, change: Long): Long = removeAnimator.getDelay(remove, move, change) override fun addAnimationPrepare(holder: RecyclerView.ViewHolder) { holder.itemView.apply { addAnimator.animationPrepare(holder)() } @@ -50,8 +48,7 @@ open class KauAnimator( holder.itemView.apply { addAnimator.animationCleanup(holder)() } } - override fun getAddDelay(remove: Long, move: Long, change: Long): Long - = addAnimator.getDelay(remove, move, change) + override fun getAddDelay(remove: Long, move: Long, change: Long): Long = addAnimator.getDelay(remove, move, change) override fun changeOldAnimation(holder: RecyclerView.ViewHolder, changeInfo: ChangeInfo): ViewPropertyAnimator { return holder.itemView.animate().apply { diff --git a/adapter/src/main/kotlin/ca/allanwang/kau/iitems/KauIItem.kt b/adapter/src/main/kotlin/ca/allanwang/kau/iitems/KauIItem.kt index 196959c..5174503 100644 --- a/adapter/src/main/kotlin/ca/allanwang/kau/iitems/KauIItem.kt +++ b/adapter/src/main/kotlin/ca/allanwang/kau/iitems/KauIItem.kt @@ -21,6 +21,7 @@ open class KauIItem<Item, VH : RecyclerView.ViewHolder>( ) : AbstractItem<Item, VH>() where Item : IItem<*, *>, Item : IClickable<*> { @SuppressLint("ResourceType") final override fun getType(): Int = type + final override fun getViewHolder(v: View): VH = viewHolder(v) final override fun getLayoutRes(): Int = layoutRes }
\ No newline at end of file |