mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Removed duplicated code
This commit is contained in:
parent
41eeafdbc0
commit
6bc7c1e6cf
2 changed files with 2 additions and 5 deletions
|
|
@ -103,7 +103,6 @@ public class AlbumBottomSheetDialog extends BottomSheetDialogFragment implements
|
|||
@Override
|
||||
public void onError(Exception exception) {
|
||||
Log.e(TAG, "onError() " + exception.getMessage());
|
||||
|
||||
dismissBottomSheet();
|
||||
}
|
||||
|
||||
|
|
@ -175,8 +174,9 @@ public class AlbumBottomSheetDialog extends BottomSheetDialogFragment implements
|
|||
Bundle bundle = new Bundle();
|
||||
bundle.putParcelable("artist_object", artist);
|
||||
NavHostFragment.findNavController(this).navigate(R.id.artistPageFragment, bundle);
|
||||
} else
|
||||
} else {
|
||||
Toast.makeText(requireContext(), getString(R.string.album_error_retrieving_artist), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
|
||||
dismissBottomSheet();
|
||||
}));
|
||||
|
|
|
|||
|
|
@ -98,7 +98,6 @@ public class ArtistBottomSheetDialog extends BottomSheetDialogFragment implement
|
|||
@Override
|
||||
public void onError(Exception exception) {
|
||||
Log.e(TAG, "onError() " + exception.getMessage());
|
||||
|
||||
dismissBottomSheet();
|
||||
}
|
||||
|
||||
|
|
@ -107,8 +106,6 @@ public class ArtistBottomSheetDialog extends BottomSheetDialogFragment implement
|
|||
if (media.size() > 0) {
|
||||
MediaManager.startQueue(mediaBrowserListenableFuture, requireContext(), (ArrayList<Song>) media, 0);
|
||||
((MainActivity) requireActivity()).setBottomSheetInPeek(true);
|
||||
|
||||
dismissBottomSheet();
|
||||
} else {
|
||||
Toast.makeText(requireContext(), getString(R.string.artist_error_retrieving_radio), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue