More recycler views
-artists detail activity not working yet
This commit is contained in:
parent
df0bbe29e3
commit
418b3a9e0f
21 changed files with 352 additions and 417 deletions
|
|
@ -59,9 +59,10 @@ public class NavigationUtil {
|
|||
}
|
||||
}
|
||||
|
||||
public static boolean openCurrentPlayingIfPossible(final Activity activity, final Pair[] sharedViews) {
|
||||
public static void openCurrentPlayingIfPossible(final Activity activity, final Pair[] sharedViews) {
|
||||
if (activity instanceof MusicControllerActivity){
|
||||
return true;
|
||||
activity.onBackPressed();
|
||||
return;
|
||||
}
|
||||
if (MusicPlayerRemote.getPosition() != -1) {
|
||||
if ((activity instanceof KabViewsDisableAble && ((KabViewsDisableAble) activity).areViewsEnabled()) || !(activity instanceof KabViewsDisableAble)) {
|
||||
|
|
@ -76,11 +77,9 @@ public class NavigationUtil {
|
|||
} else {
|
||||
activity.startActivity(intent);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
Toast.makeText(activity, activity.getResources().getString(R.string.nothing_playing), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue