From 99c6589242207e9df2de045f5964c8355b8da521 Mon Sep 17 00:00:00 2001 From: Gideon Okuro Date: Wed, 29 Nov 2023 14:34:50 +0300 Subject: [PATCH 1/2] conver feedback reply to kotlin --- .../planet/myplanet/model/FeedbackReply.java | 35 ------------------- .../planet/myplanet/model/FeedbackReply.kt | 3 ++ .../ui/feedback/FeedbackDetailActivity.java | 6 ++-- 3 files changed, 6 insertions(+), 38 deletions(-) delete mode 100644 app/src/main/java/org/ole/planet/myplanet/model/FeedbackReply.java create mode 100644 app/src/main/java/org/ole/planet/myplanet/model/FeedbackReply.kt diff --git a/app/src/main/java/org/ole/planet/myplanet/model/FeedbackReply.java b/app/src/main/java/org/ole/planet/myplanet/model/FeedbackReply.java deleted file mode 100644 index a16c7da244..0000000000 --- a/app/src/main/java/org/ole/planet/myplanet/model/FeedbackReply.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.ole.planet.myplanet.model; - -public class FeedbackReply { - String message, user, date; - - public FeedbackReply(String message, String user, String date) { - this.message = message; - this.user = user; - this.date = date; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public String getUser() { - return user; - } - - public void setUser(String user) { - this.user = user; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } -} diff --git a/app/src/main/java/org/ole/planet/myplanet/model/FeedbackReply.kt b/app/src/main/java/org/ole/planet/myplanet/model/FeedbackReply.kt new file mode 100644 index 0000000000..4b7b885f37 --- /dev/null +++ b/app/src/main/java/org/ole/planet/myplanet/model/FeedbackReply.kt @@ -0,0 +1,3 @@ +package org.ole.planet.myplanet.model + +class FeedbackReply(@JvmField var message: String, @JvmField var user: String, @JvmField var date: String) diff --git a/app/src/main/java/org/ole/planet/myplanet/ui/feedback/FeedbackDetailActivity.java b/app/src/main/java/org/ole/planet/myplanet/ui/feedback/FeedbackDetailActivity.java index 3cfd0862b9..c7b2708249 100644 --- a/app/src/main/java/org/ole/planet/myplanet/ui/feedback/FeedbackDetailActivity.java +++ b/app/src/main/java/org/ole/planet/myplanet/ui/feedback/FeedbackDetailActivity.java @@ -149,9 +149,9 @@ public ReplyViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewTyp @Override public void onBindViewHolder(@NonNull ReplyViewHolder holder, int position) { - rowFeedbackReplyBinding.tvDate.setText(TimeUtils.getFormatedDateWithTime(Long.parseLong(replyList.get(position).getDate()))); - rowFeedbackReplyBinding.tvUser.setText(replyList.get(position).getUser()); - rowFeedbackReplyBinding.tvMessage.setText(replyList.get(position).getMessage()); + rowFeedbackReplyBinding.tvDate.setText(TimeUtils.getFormatedDateWithTime(Long.parseLong(replyList.get(position).date))); + rowFeedbackReplyBinding.tvUser.setText(replyList.get(position).user); + rowFeedbackReplyBinding.tvMessage.setText(replyList.get(position).message); } @Override From bf88e7165f35eec6f7a90e9b92b480cf402bbea2 Mon Sep 17 00:00:00 2001 From: dogi Date: Wed, 29 Nov 2023 11:56:29 -0500 Subject: [PATCH 2/2] Update build.gradle --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index d15a95034b..601fff3c42 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "org.ole.planet.myplanet" minSdkVersion 21 targetSdkVersion 34 - versionCode 1162 - versionName "0.11.62" + versionCode 1164 + versionName "0.11.64" ndkVersion '21.3.6528147' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true