From 70cb088315db9901923699a867750a292219d52d Mon Sep 17 00:00:00 2001 From: Alexander Dadukin Date: Sun, 20 Sep 2020 22:45:13 +0300 Subject: [PATCH] implemented new line at the end of files. --- app/src/main/AndroidManifest.xml | 2 +- app/src/main/res/layout/activity_notification_badge.xml | 2 +- app/src/main/res/menu/notification_badge_menu.xml | 2 +- app/src/main/res/menu/toolbar_menu.xml | 2 +- .../ExpandableBottomBarNotification.kt | 4 ++-- .../ExpandableBottomBarNotificationBadge.kt | 6 +++--- .../lib_expandablebottombar/ExpandableItemViewController.kt | 4 ++-- .../components/ExpandableBottomBarMenuItemView.kt | 6 +++--- .../lib_expandablebottombar/state/MenuItemSavedState.kt | 2 +- .../src/main/res/layout/content_bottombar_menu_item.xml | 2 +- .../expandablebottombar/ExpandableBottomBarMenuItemTest.kt | 2 +- .../expandablebottombar/ExpandableItemViewControllerTest.kt | 2 +- 12 files changed, 18 insertions(+), 18 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f5ed2f6..ea7e6b4 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -25,4 +25,4 @@ - \ No newline at end of file + diff --git a/app/src/main/res/layout/activity_notification_badge.xml b/app/src/main/res/layout/activity_notification_badge.xml index 50c1d3f..6ca359f 100644 --- a/app/src/main/res/layout/activity_notification_badge.xml +++ b/app/src/main/res/layout/activity_notification_badge.xml @@ -33,4 +33,4 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" /> - \ No newline at end of file + diff --git a/app/src/main/res/menu/notification_badge_menu.xml b/app/src/main/res/menu/notification_badge_menu.xml index e33f02e..e501b85 100644 --- a/app/src/main/res/menu/notification_badge_menu.xml +++ b/app/src/main/res/menu/notification_badge_menu.xml @@ -19,4 +19,4 @@ android:title="@string/text3" android:icon="@drawable/ic_bookmarks" app:exb_color="#fa2" /> - \ No newline at end of file + diff --git a/app/src/main/res/menu/toolbar_menu.xml b/app/src/main/res/menu/toolbar_menu.xml index 93b45f2..3d8ca22 100644 --- a/app/src/main/res/menu/toolbar_menu.xml +++ b/app/src/main/res/menu/toolbar_menu.xml @@ -3,4 +3,4 @@ - \ No newline at end of file + diff --git a/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/ExpandableBottomBarNotification.kt b/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/ExpandableBottomBarNotification.kt index 6d46dbd..d2671e2 100644 --- a/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/ExpandableBottomBarNotification.kt +++ b/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/ExpandableBottomBarNotification.kt @@ -18,14 +18,14 @@ class ExpandableBottomBarNotification internal constructor( * @param color - background color of a badge */ fun setBadgeColor(@ColorInt color: Int) { - view?.setNotifiationBadgeBackground(color) + view?.setNotificationBadgeBackground(color) } /** * @param color - text color of a badge */ fun setBadgeTextColor(@ColorInt color: Int) { - view?.setNotifiationBadgeTextColor(color) + view?.setNotificationBadgeTextColor(color) } /** diff --git a/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/ExpandableBottomBarNotificationBadge.kt b/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/ExpandableBottomBarNotificationBadge.kt index 0931bf0..cc1d4e4 100644 --- a/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/ExpandableBottomBarNotificationBadge.kt +++ b/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/ExpandableBottomBarNotificationBadge.kt @@ -11,8 +11,8 @@ internal interface ExpandableBottomBarNotificationBadge { fun clearNotification() - fun setNotifiationBadgeBackground(@ColorInt color: Int) + fun setNotificationBadgeBackground(@ColorInt color: Int) - fun setNotifiationBadgeTextColor(@ColorInt color: Int) + fun setNotificationBadgeTextColor(@ColorInt color: Int) -} \ No newline at end of file +} diff --git a/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/ExpandableItemViewController.kt b/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/ExpandableItemViewController.kt index a1e315e..3ac498a 100644 --- a/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/ExpandableItemViewController.kt +++ b/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/ExpandableItemViewController.kt @@ -172,8 +172,8 @@ internal class ExpandableItemViewController( setIcon(menuItem.iconId, backgroundColorStateList) setText(menuItem.text, backgroundColorStateList) - setNotifiationBadgeBackground(menuItem.badgeBackgroundColor ?: notificationBadgeColor) - setNotifiationBadgeTextColor(menuItem.badgeTextColor ?: notificationBadgeTextColor) + setNotificationBadgeBackground(menuItem.badgeBackgroundColor ?: notificationBadgeColor) + setNotificationBadgeTextColor(menuItem.badgeTextColor ?: notificationBadgeTextColor) background = createHighlightedMenuShape() setOnClickListener(onItemClickListener) diff --git a/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/components/ExpandableBottomBarMenuItemView.kt b/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/components/ExpandableBottomBarMenuItemView.kt index 1e950c0..371c41d 100644 --- a/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/components/ExpandableBottomBarMenuItemView.kt +++ b/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/components/ExpandableBottomBarMenuItemView.kt @@ -91,11 +91,11 @@ internal class ExpandableBottomBarMenuItemView @JvmOverloads constructor( iconView.badgeText = null } - override fun setNotifiationBadgeBackground(color: Int) { + override fun setNotificationBadgeBackground(color: Int) { iconView.badgeColor = color } - override fun setNotifiationBadgeTextColor(color: Int) { + override fun setNotificationBadgeTextColor(color: Int) { iconView.badgeTextColor = color } -} \ No newline at end of file +} diff --git a/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/state/MenuItemSavedState.kt b/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/state/MenuItemSavedState.kt index 3b80ede..bfc9d3c 100644 --- a/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/state/MenuItemSavedState.kt +++ b/lib-expandablebottombar/src/main/java/github/com/st235/lib_expandablebottombar/state/MenuItemSavedState.kt @@ -7,4 +7,4 @@ import kotlinx.android.parcel.Parcelize internal data class MenuItemSavedState( val badgeState: NotificationBadgeSavedState, val superState: Parcelable? -): Parcelable \ No newline at end of file +): Parcelable diff --git a/lib-expandablebottombar/src/main/res/layout/content_bottombar_menu_item.xml b/lib-expandablebottombar/src/main/res/layout/content_bottombar_menu_item.xml index 65485db..a3ea9c1 100644 --- a/lib-expandablebottombar/src/main/res/layout/content_bottombar_menu_item.xml +++ b/lib-expandablebottombar/src/main/res/layout/content_bottombar_menu_item.xml @@ -20,4 +20,4 @@ android:textStyle="bold" android:visibility="gone" /> - \ No newline at end of file + diff --git a/lib-expandablebottombar/src/test/java/github/com/st235/expandablebottombar/ExpandableBottomBarMenuItemTest.kt b/lib-expandablebottombar/src/test/java/github/com/st235/expandablebottombar/ExpandableBottomBarMenuItemTest.kt index 2e34065..d8828b9 100644 --- a/lib-expandablebottombar/src/test/java/github/com/st235/expandablebottombar/ExpandableBottomBarMenuItemTest.kt +++ b/lib-expandablebottombar/src/test/java/github/com/st235/expandablebottombar/ExpandableBottomBarMenuItemTest.kt @@ -57,4 +57,4 @@ class ExpandableBottomBarMenuItemTest { fun `test that right created item will not be rise an exception`() { val item = ExpandableBottomBarMenuItem.ItemBuildRequest(builder, context).id(1).text("").icon(1).color(1).create() } -} \ No newline at end of file +} diff --git a/lib-expandablebottombar/src/test/java/github/com/st235/expandablebottombar/ExpandableItemViewControllerTest.kt b/lib-expandablebottombar/src/test/java/github/com/st235/expandablebottombar/ExpandableItemViewControllerTest.kt index feba76d..4b40f20 100644 --- a/lib-expandablebottombar/src/test/java/github/com/st235/expandablebottombar/ExpandableItemViewControllerTest.kt +++ b/lib-expandablebottombar/src/test/java/github/com/st235/expandablebottombar/ExpandableItemViewControllerTest.kt @@ -34,4 +34,4 @@ class ExpandableItemViewControllerTest { expandableItemViewController.unselect() verify(itemView).deselect() } -} \ No newline at end of file +}