diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2022-11-03 02:58:07 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2022-11-03 02:58:07 +0000 |
commit | 59c74a2a87789e712a0a25940bfcdae91da89290 (patch) | |
tree | 149a5c261266e137bb1736b34ecf8d826b27f39c /app/src/main/java | |
parent | 4b81d554a8d5e26d5f81cf6a0f400c2176b327da (diff) | |
download | infinity-for-reddit-59c74a2a87789e712a0a25940bfcdae91da89290.tar infinity-for-reddit-59c74a2a87789e712a0a25940bfcdae91da89290.tar.gz infinity-for-reddit-59c74a2a87789e712a0a25940bfcdae91da89290.tar.bz2 infinity-for-reddit-59c74a2a87789e712a0a25940bfcdae91da89290.tar.lz infinity-for-reddit-59c74a2a87789e712a0a25940bfcdae91da89290.tar.xz infinity-for-reddit-59c74a2a87789e712a0a25940bfcdae91da89290.tar.zst infinity-for-reddit-59c74a2a87789e712a0a25940bfcdae91da89290.zip |
Handle u/me.
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java index eeafcbd8..2361793d 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java @@ -263,6 +263,10 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele mAccountName = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCOUNT_NAME, null); lockBottomAppBar = mSharedPreferences.getBoolean(SharedPreferencesUtils.LOCK_BOTTOM_APP_BAR, false); + if (username.equalsIgnoreCase("me")) { + username = mAccountName; + } + if (savedInstanceState == null) { mMessageFullname = getIntent().getStringExtra(EXTRA_MESSAGE_FULLNAME); mNewAccountName = getIntent().getStringExtra(EXTRA_NEW_ACCOUNT_NAME); |