From 9d9f0f0c375dbf4e4d7d97d097b91ace96d065cb Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Tue, 24 Oct 2017 21:53:37 -0400 Subject: Loosen set menu icon demans --- core/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt | 3 ++- docs/Changelog.md | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/core/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt index 33bdc62..0e418ec 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/ActivityUtils.kt @@ -3,6 +3,7 @@ package ca.allanwang.kau.utils import android.annotation.SuppressLint import android.app.Activity import android.app.ActivityOptions +import android.content.Context import android.content.Intent import android.graphics.Color import android.os.Bundle @@ -93,7 +94,7 @@ inline var Activity.statusBarLight: Boolean * * Call in [Activity.onCreateOptionsMenu] */ -fun Activity.setMenuIcons(menu: Menu, @ColorInt color: Int = Color.WHITE, vararg iicons: Pair) { +fun Context.setMenuIcons(menu: Menu, @ColorInt color: Int = Color.WHITE, vararg iicons: Pair) { iicons.forEach { (id, iicon) -> menu.findItem(id).icon = iicon.toDrawable(this, sizeDp = 18, color = color) } diff --git a/docs/Changelog.md b/docs/Changelog.md index cad2792..f13f21b 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -1,5 +1,11 @@ # Changelog +## v3.4.5 +* Add French translations +* Add Spanish translations +* Add German translations +* Remove unnecessary strings + ## v3.4.4 * Add translation support for crowdin * Update dependencies -- cgit v1.2.3