Skip to content

Commit

Permalink
Fixing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumBadger committed Oct 7, 2023
1 parent 8a5ca72 commit 2118960
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ public static void show(
username,
new APIResponseHandler.UserResponseHandler(activity) {
@Override
protected void onDownloadStarted() {}
protected void onDownloadStarted() {
}

@Override
protected void onSuccess(final RedditUser user, final TimestampUTC timestamp) {
Expand All @@ -151,11 +152,11 @@ protected void onSuccess(final RedditUser user, final TimestampUTC timestamp) {
textviewUsername.setText(user.name);

textviewAccountAge.setText(TimeFormatHelper.format(
TimestampUTC.now().elapsedPeriodSince(
TimestampUTC.fromUtcSecs(user.created_utc)),
activity,
R.string.user_profile_account_age,
1));
TimestampUTC.now().elapsedPeriodSince(
TimestampUTC.fromUtcSecs(user.created_utc)),
activity,
R.string.user_profile_account_age,
1));

if (!StringUtils.asciiLowercase(user.name).equals(
StringUtils.asciiLowercase(accountManager
Expand Down Expand Up @@ -243,7 +244,7 @@ protected void onSuccess(final RedditUser user, final TimestampUTC timestamp) {

chipMoreInfo.setOnClickListener(
v -> UserPropertiesDialog.newInstance(user)
.show(activity.getSupportFragmentManager(), null));
.show(activity.getSupportFragmentManager(), null));
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/res/layout/user_profile_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
android:layout_height="wrap_content"
app:chipIcon="?rrIconInfo"
app:chipIconSize="16sp"
android:text="More info"
android:text="@string/userprofile_button_more_info"
style="@style/Widget.Material3.Chip.Assist.Elevated"
android:checkable="false"/>

Expand Down
1 change: 1 addition & 0 deletions src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1797,6 +1797,7 @@
<string name="userprofile_send_message">Send message</string>
<string name="userprofile_tag_friend">Friend</string>
<string name="userprofile_tag_you">You</string>
<string name="userprofile_button_more_info">More info</string>

<string name="props_id">ID</string>

Expand Down

0 comments on commit 2118960

Please sign in to comment.