mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
style: callback interface methods have become default methods
This commit is contained in:
parent
efc1baa802
commit
cb3f1290d1
8 changed files with 35 additions and 38 deletions
|
|
@ -3,46 +3,29 @@ package com.cappielloantonio.tempo.interfaces;
|
|||
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
@Keep
|
||||
public interface ClickCallback {
|
||||
default void onMediaClick(Bundle bundle) {}
|
||||
|
||||
default void onMediaLongClick(Bundle bundle) {}
|
||||
|
||||
default void onAlbumClick(Bundle bundle) {}
|
||||
|
||||
default void onAlbumLongClick(Bundle bundle) {}
|
||||
|
||||
default void onArtistClick(Bundle bundle) {}
|
||||
|
||||
default void onArtistLongClick(Bundle bundle) {}
|
||||
|
||||
default void onGenreClick(Bundle bundle) {}
|
||||
|
||||
default void onPlaylistClick(Bundle bundle) {}
|
||||
|
||||
default void onPlaylistLongClick(Bundle bundle) {}
|
||||
|
||||
default void onYearClick(Bundle bundle) {}
|
||||
|
||||
default void onServerClick(Bundle bundle) {}
|
||||
|
||||
default void onServerLongClick(Bundle bundle) {}
|
||||
|
||||
default void onPodcastEpisodeClick(Bundle bundle) {}
|
||||
|
||||
default void onPodcastEpisodeLongClick(Bundle bundle) {}
|
||||
|
||||
default void onPodcastChannelClick(Bundle bundle) {}
|
||||
|
||||
default void onPodcastChannelLongClick(Bundle bundle) {}
|
||||
|
||||
default void onInternetRadioStationClick(Bundle bundle) {}
|
||||
|
||||
default void onInternetRadioStationLongClick(Bundle bundle) {}
|
||||
|
||||
default void onMusicFolderClick(Bundle bundle) {}
|
||||
|
||||
default void onMusicDirectoryClick(Bundle bundle) {}
|
||||
|
||||
default void onMusicIndexClick(Bundle bundle) {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
package com.cappielloantonio.tempo.interfaces;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
@Keep
|
||||
public interface DecadesCallback {
|
||||
void onLoadYear(int year);
|
||||
default void onLoadYear(int year) {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
package com.cappielloantonio.tempo.interfaces;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Keep
|
||||
public interface MediaCallback {
|
||||
|
||||
void onError(Exception exception);
|
||||
|
||||
void onLoadMedia(List<?> media);
|
||||
default void onError(Exception exception) {}
|
||||
default void onLoadMedia(List<?> media) {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
package com.cappielloantonio.tempo.interfaces;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
@Keep
|
||||
public interface MediaIndexCallback {
|
||||
void onRecovery(int index);
|
||||
default void onRecovery(int index) {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
package com.cappielloantonio.tempo.interfaces;
|
||||
|
||||
public interface PodcastCallback {
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
void onDismiss();
|
||||
@Keep
|
||||
|
||||
public interface PodcastCallback {
|
||||
default void onDismiss() {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
package com.cappielloantonio.tempo.interfaces;
|
||||
|
||||
public interface RadioCallback {
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
void onDismiss();
|
||||
@Keep
|
||||
|
||||
public interface RadioCallback {
|
||||
default void onDismiss() {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
package com.cappielloantonio.tempo.interfaces;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
@Keep
|
||||
public interface ScanCallback {
|
||||
|
||||
void onError(Exception exception);
|
||||
|
||||
void onSuccess(boolean isScanning, long count);
|
||||
default void onError(Exception exception) {}
|
||||
default void onSuccess(boolean isScanning, long count) {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
package com.cappielloantonio.tempo.interfaces;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
@Keep
|
||||
public interface SystemCallback {
|
||||
|
||||
void onError(Exception exception);
|
||||
|
||||
void onSuccess(String password, String token, String salt);
|
||||
default void onError(Exception exception) {}
|
||||
default void onSuccess(String password, String token, String salt) {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue