From 66795bb48bb17ad00a4a7e6af7a5507dd70221e4 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Sun, 13 Feb 2022 12:21:57 +0100 Subject: [PATCH] correct code formatting and license header added Signed-off-by: Andy Scherzinger --- .../talk/events/OpenConversationEvent.kt | 4 ++-- .../talk/ui/dialog/ContactsBottomDialog.kt | 24 +++++++++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/events/OpenConversationEvent.kt b/app/src/main/java/com/nextcloud/talk/events/OpenConversationEvent.kt index 977a0c571..7bc8b6849 100644 --- a/app/src/main/java/com/nextcloud/talk/events/OpenConversationEvent.kt +++ b/app/src/main/java/com/nextcloud/talk/events/OpenConversationEvent.kt @@ -24,8 +24,8 @@ import android.os.Bundle import com.nextcloud.talk.models.json.conversations.Conversation class OpenConversationEvent { - var conversation : Conversation? = null - var bundle : Bundle? = null + var conversation: Conversation? = null + var bundle: Bundle? = null constructor(conversation: Conversation?, bundle: Bundle?) { this.conversation = conversation diff --git a/app/src/main/java/com/nextcloud/talk/ui/dialog/ContactsBottomDialog.kt b/app/src/main/java/com/nextcloud/talk/ui/dialog/ContactsBottomDialog.kt index 71e2ebe94..2d24772c2 100644 --- a/app/src/main/java/com/nextcloud/talk/ui/dialog/ContactsBottomDialog.kt +++ b/app/src/main/java/com/nextcloud/talk/ui/dialog/ContactsBottomDialog.kt @@ -1,3 +1,23 @@ +/* + * Nextcloud Talk application + * + * @author Marcel Hibbe + * Copyright (C) 2022 Marcel Hibbe + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.nextcloud.talk.ui.dialog import android.app.Activity @@ -39,7 +59,7 @@ class ContactsBottomDialog( executeEntryMenuController(bundle) } - private fun executeEntryMenuController(bundle : Bundle) { + private fun executeEntryMenuController(bundle: Bundle) { dialogRouter = Conductor.attachRouter(activity, binding.root, null) dialogRouter!!.pushController( @@ -59,4 +79,4 @@ class ContactsBottomDialog( companion object { private const val TAG = "ContactsBottomDialog" } -} \ No newline at end of file +}