set transitions to video player views like master -> detail

This commit is contained in:
Andrew Dolgov 2015-11-30 09:41:09 +03:00
parent afa8203b5e
commit 0d870bf61c
4 changed files with 25 additions and 2 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
android:versionCode="385"
android:versionName="1.157" >
android:versionCode="386"
android:versionName="1.158" >
<uses-sdk
android:minSdkVersion="16"

View File

@ -1253,6 +1253,8 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
intent.putExtra("title", article.title);
startActivity(intent);
m_activity.overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
} else {
m_activity.openUri(Uri.parse(article.flavorStreamUri));
}
@ -1264,6 +1266,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
intent.putExtra("title", article.title);
startActivity(intent);
m_activity.overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
} else {

View File

@ -278,4 +278,14 @@ public class VideoPlayerActivity extends CommonActivity {
surfaceView.setLayoutParams(lp);
}
@Override
public void onPause() {
super.onPause();
if (isFinishing()) {
overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);
}
}
}

View File

@ -146,4 +146,14 @@ public class YoutubePlayerActivity extends CommonActivity implements YouTubePlay
toast(result.toString());
}
@Override
public void onPause() {
super.onPause();
if (isFinishing()) {
overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);
}
}
}