mirror of
				https://github.com/KokaKiwi/BarInsta
				synced 2025-10-31 03:25:34 +00:00 
			
		
		
		
	close #998
This commit is contained in:
		
							parent
							
								
									da82759d19
								
							
						
					
					
						commit
						5593860e6c
					
				| @ -134,7 +134,11 @@ public final class StoryListViewerFragment extends Fragment implements SwipeRefr | |||||||
|         fragmentActivity = (AppCompatActivity) requireActivity(); |         fragmentActivity = (AppCompatActivity) requireActivity(); | ||||||
|         context = getContext(); |         context = getContext(); | ||||||
|         if (context == null) return; |         if (context == null) return; | ||||||
|         setHasOptionsMenu(true); |         final Bundle args = getArguments(); | ||||||
|  |         if (args == null) return; | ||||||
|  |         final StoryListViewerFragmentArgs fragmentArgs = StoryListViewerFragmentArgs.fromBundle(args); | ||||||
|  |         type = fragmentArgs.getType(); | ||||||
|  |         setHasOptionsMenu(type.equals("feed")); | ||||||
|         storiesRepository = StoriesRepository.Companion.getInstance(); |         storiesRepository = StoriesRepository.Companion.getInstance(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| @ -195,9 +199,6 @@ public final class StoryListViewerFragment extends Fragment implements SwipeRefr | |||||||
| 
 | 
 | ||||||
|     private void init() { |     private void init() { | ||||||
|         final Context context = getContext(); |         final Context context = getContext(); | ||||||
|         if (getArguments() == null) return; |  | ||||||
|         final StoryListViewerFragmentArgs fragmentArgs = StoryListViewerFragmentArgs.fromBundle(getArguments()); |  | ||||||
|         type = fragmentArgs.getType(); |  | ||||||
|         binding.swipeRefreshLayout.setOnRefreshListener(this); |         binding.swipeRefreshLayout.setOnRefreshListener(this); | ||||||
|         final LinearLayoutManager layoutManager = new LinearLayoutManager(context); |         final LinearLayoutManager layoutManager = new LinearLayoutManager(context); | ||||||
|         final ActionBar actionBar = fragmentActivity.getSupportActionBar(); |         final ActionBar actionBar = fragmentActivity.getSupportActionBar(); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user