fix(recent-url): add support for own profile
This commit is contained in:
@@ -191,7 +191,6 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
|
||||
profileAccountID=account.id;
|
||||
isOwnProfile=AccountSessionManager.getInstance().isSelf(accountID, account);
|
||||
loaded=true;
|
||||
DomainManager.getInstance().setCurrentDomain(account.url);
|
||||
if(!isOwnProfile)
|
||||
loadRelationship();
|
||||
}else{
|
||||
@@ -212,6 +211,14 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
|
||||
setHasOptionsMenu(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onHiddenChanged(boolean hidden) {
|
||||
super.onHiddenChanged(hidden);
|
||||
if (!hidden) {
|
||||
DomainManager.getInstance().setCurrentDomain(account.url);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateContentView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){
|
||||
View content=inflater.inflate(R.layout.fragment_profile, container, false);
|
||||
|
||||
Reference in New Issue
Block a user