From ffa8ea615bf7374b050c788e8073f501dad6ded2 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Tue, 19 Sep 2023 21:38:27 +0200 Subject: [PATCH] refactor: Convert AccountActionListener to Kotlin (#74) --- ...Listener.java => AccountActionListener.kt} | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) rename app/src/main/java/app/pachli/interfaces/{AccountActionListener.java => AccountActionListener.kt} (51%) diff --git a/app/src/main/java/app/pachli/interfaces/AccountActionListener.java b/app/src/main/java/app/pachli/interfaces/AccountActionListener.kt similarity index 51% rename from app/src/main/java/app/pachli/interfaces/AccountActionListener.java rename to app/src/main/java/app/pachli/interfaces/AccountActionListener.kt index 6d75e63d6..4d79b7f0b 100644 --- a/app/src/main/java/app/pachli/interfaces/AccountActionListener.java +++ b/app/src/main/java/app/pachli/interfaces/AccountActionListener.kt @@ -1,4 +1,5 @@ -/* Copyright 2017 Andrew Dawson +/* + * Copyright 2023 Pachli Association * * This file is a part of Pachli. * @@ -10,16 +11,15 @@ * 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 Tusky; if not, - * see . */ + * You should have received a copy of the GNU General Public License along with Pachli; if not, + * see . + */ -package app.pachli.interfaces; +package app.pachli.interfaces -import androidx.annotation.NonNull; - -public interface AccountActionListener { - void onViewAccount(@NonNull String id); - void onMute(final boolean mute, @NonNull final String id, final int position, final boolean notifications); - void onBlock(final boolean block, @NonNull final String id, final int position); - void onRespondToFollowRequest(final boolean accept, @NonNull final String id, final int position); +interface AccountActionListener { + fun onViewAccount(id: String) + fun onMute(mute: Boolean, id: String, position: Int, notifications: Boolean) + fun onBlock(block: Boolean, id: String, position: Int) + fun onRespondToFollowRequest(accept: Boolean, id: String, position: Int) }