mirror of
				https://github.com/KokaKiwi/BarInsta
				synced 2025-10-30 19:15:35 +00:00 
			
		
		
		
	Check logged in onCreate of ProfileFragment
This commit is contained in:
		
							parent
							
								
									c073cfc9be
								
							
						
					
					
						commit
						4fb1260074
					
				| @ -210,6 +210,8 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe | ||||
|     public View onCreateView(@NonNull final LayoutInflater inflater, | ||||
|                              final ViewGroup container, | ||||
|                              final Bundle savedInstanceState) { | ||||
|         cookie = settingsHelper.getString(Constants.COOKIE); | ||||
|         isLoggedIn = !Utils.isEmpty(cookie) && Utils.getUserIdFromCookie(cookie) != null; | ||||
|         if (root != null) { | ||||
|             if (getArguments() != null) { | ||||
|                 final ProfileFragmentArgs fragmentArgs = ProfileFragmentArgs.fromBundle(getArguments()); | ||||
| @ -274,8 +276,6 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe | ||||
|     } | ||||
| 
 | ||||
|     private void init() { | ||||
|         cookie = settingsHelper.getString(Constants.COOKIE); | ||||
|         isLoggedIn = !Utils.isEmpty(cookie) && Utils.getUserIdFromCookie(cookie) != null; | ||||
|         if (getArguments() != null) { | ||||
|             final ProfileFragmentArgs fragmentArgs = ProfileFragmentArgs.fromBundle(getArguments()); | ||||
|             username = fragmentArgs.getUsername(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user