set transitions to video player views like master -> detail
This commit is contained in:
parent
afa8203b5e
commit
0d870bf61c
@ -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"
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user