More transitions
This commit is contained in:
parent
04c3dac025
commit
346961a636
4 changed files with 10 additions and 4 deletions
|
|
@ -257,7 +257,7 @@ public class AlbumDetailActivity extends AbsFabActivity implements KabViewsDisab
|
|||
case R.id.action_settings:
|
||||
return true;
|
||||
case R.id.action_current_playing:
|
||||
NavigationUtil.openCurrentPlayingIfPossible(this, null);
|
||||
NavigationUtil.openCurrentPlayingIfPossible(this, getSharedViewsWithFab(null));
|
||||
return true;
|
||||
case R.id.action_tag_editor:
|
||||
Intent intent = new Intent(this, AlbumTagEditorActivity.class);
|
||||
|
|
|
|||
|
|
@ -381,7 +381,7 @@ public class ArtistDetailActivity extends AbsFabActivity implements KabViewsDisa
|
|||
case R.id.action_settings:
|
||||
return true;
|
||||
case R.id.action_current_playing:
|
||||
NavigationUtil.openCurrentPlayingIfPossible(this, null);
|
||||
NavigationUtil.openCurrentPlayingIfPossible(this, getSharedViewsWithFab(null));
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import android.content.Intent;
|
|||
import android.content.res.Configuration;
|
||||
import android.os.Bundle;
|
||||
import android.support.v13.app.FragmentPagerAdapter;
|
||||
import android.support.v4.util.Pair;
|
||||
import android.support.v4.view.ViewPager;
|
||||
import android.support.v4.widget.DrawerLayout;
|
||||
import android.support.v7.app.ActionBar;
|
||||
|
|
@ -194,7 +195,11 @@ public class MainActivity extends AbsFabActivity
|
|||
@Override
|
||||
public void onNavigationDrawerItemSelected(int position) {
|
||||
if (position == NavigationDrawerFragment.NAVIGATION_DRAWER_HEADER) {
|
||||
NavigationUtil.openCurrentPlayingIfPossible(this, null);
|
||||
NavigationUtil.openCurrentPlayingIfPossible(this, getSharedViewsWithFab(new Pair[]{
|
||||
Pair.create(navigationDrawerFragment.getAlbumArtImageView(),
|
||||
getResources().getString(R.string.transition_album_cover)
|
||||
)
|
||||
}));
|
||||
} else {
|
||||
if (viewPager != null) {
|
||||
viewPager.setCurrentItem(position, true);
|
||||
|
|
@ -232,7 +237,7 @@ public class MainActivity extends AbsFabActivity
|
|||
AboutDeveloperDialogHelper.getDialog(this).show();
|
||||
return true;
|
||||
case R.id.action_current_playing:
|
||||
NavigationUtil.openCurrentPlayingIfPossible(this, null);
|
||||
NavigationUtil.openCurrentPlayingIfPossible(this, getSharedViewsWithFab(null));
|
||||
return true;
|
||||
case R.id.action_playing_queue:
|
||||
final MaterialDialog materialDialog = PlayingQueueDialogHelper.getDialog(this);
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
android:clickable="true">
|
||||
|
||||
<ImageView
|
||||
android:transitionName="@string/transition_album_cover"
|
||||
android:id="@+id/album_art"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/navigation_drawer_image_height"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue