mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 06:37:30 +00:00
Handle '@' in username in ProfileFragment. Fixes austinhuang0131/barinsta#1337
This commit is contained in:
parent
cf0c420801
commit
9830a04ec3
@ -548,6 +548,9 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
|
||||
if (getArguments() != null) {
|
||||
final ProfileFragmentArgs fragmentArgs = ProfileFragmentArgs.fromBundle(getArguments());
|
||||
username = fragmentArgs.getUsername();
|
||||
if (!TextUtils.isEmpty(username) && username.startsWith("@")) {
|
||||
username = username.substring(1);
|
||||
}
|
||||
setUsernameDelayed();
|
||||
}
|
||||
if (TextUtils.isEmpty(username) && !isLoggedIn) {
|
||||
|
Loading…
Reference in New Issue
Block a user