mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 09:33:33 +00:00
Moved the functions called in onActivityCreated to onCreateView
This commit is contained in:
parent
5109900203
commit
00df65f64d
3 changed files with 6 additions and 24 deletions
|
|
@ -56,16 +56,6 @@ public class AlbumPageFragment extends Fragment {
|
|||
inflater.inflate(R.menu.album_page_menu, menu);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
|
||||
super.onActivityCreated(savedInstanceState);
|
||||
|
||||
initAppBar();
|
||||
initAlbumInfoTextButton();
|
||||
initMusicButton();
|
||||
initSimilarAlbumsView();
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||
activity = (MainActivity) getActivity();
|
||||
|
|
@ -75,6 +65,10 @@ public class AlbumPageFragment extends Fragment {
|
|||
albumPageViewModel = new ViewModelProvider(requireActivity()).get(AlbumPageViewModel.class);
|
||||
|
||||
init();
|
||||
initAppBar();
|
||||
initAlbumInfoTextButton();
|
||||
initMusicButton();
|
||||
initSimilarAlbumsView();
|
||||
initBackCover();
|
||||
initSongsView();
|
||||
|
||||
|
|
|
|||
|
|
@ -46,13 +46,6 @@ public class ArtistPageFragment extends Fragment {
|
|||
private AlbumArtistPageOrSimilarAdapter albumArtistPageOrSimilarAdapter;
|
||||
private ArtistSimilarAdapter artistSimilarAdapter;
|
||||
|
||||
@Override
|
||||
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
|
||||
super.onActivityCreated(savedInstanceState);
|
||||
|
||||
initAppBar();
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||
activity = (MainActivity) getActivity();
|
||||
|
|
@ -62,6 +55,7 @@ public class ArtistPageFragment extends Fragment {
|
|||
artistPageViewModel = new ViewModelProvider(requireActivity()).get(ArtistPageViewModel.class);
|
||||
|
||||
init();
|
||||
initAppBar();
|
||||
initBackdrop();
|
||||
initPlayButtons();
|
||||
initTopSongsView();
|
||||
|
|
|
|||
|
|
@ -49,13 +49,6 @@ public class PlaylistPageFragment extends Fragment {
|
|||
inflater.inflate(R.menu.playlist_page_menu, menu);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
|
||||
super.onActivityCreated(savedInstanceState);
|
||||
|
||||
initAppBar();
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||
activity = (MainActivity) getActivity();
|
||||
|
|
@ -65,6 +58,7 @@ public class PlaylistPageFragment extends Fragment {
|
|||
playlistPageViewModel = new ViewModelProvider(requireActivity()).get(PlaylistPageViewModel.class);
|
||||
|
||||
init();
|
||||
initAppBar();
|
||||
initBackCover();
|
||||
initMusicButton();
|
||||
initSongsView();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue