Browse Source

Handle '@' in username in ProfileFragment. Fixes austinhuang0131/barinsta#1337

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
9830a04ec3
  1. 3
      app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java

3
app/src/main/java/awais/instagrabber/fragments/main/ProfileFragment.java

@ -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…
Cancel
Save