From eeb2fcd5f0f25dccd5fd69e5cc3e10a3d4bed535 Mon Sep 17 00:00:00 2001 From: Stefan Schueller Date: Mon, 17 Dec 2018 21:07:49 +0100 Subject: [PATCH 1/7] - Fixed permission missing for Android Pie --- app/build.gradle | 4 ++-- app/src/main/AndroidManifest.xml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 2b761af..74ab3a8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -6,8 +6,8 @@ android { applicationId "net.schueller.peertube" minSdkVersion 21 targetSdkVersion 28 - versionCode 107 - versionName "1.0.7" + versionCode 108 + versionName "1.0.8" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 178aa69..3343545 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -9,6 +9,9 @@ + + + Date: Mon, 17 Dec 2018 21:32:01 +0100 Subject: [PATCH 2/7] - Restart video play activity with correct data on trigger from notification --- app/build.gradle | 4 ++-- .../net/schueller/peertube/activity/VideoPlayActivity.java | 6 +++--- .../net/schueller/peertube/service/VideoPlayerService.java | 5 +++++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 74ab3a8..d6c80a7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -6,8 +6,8 @@ android { applicationId "net.schueller.peertube" minSdkVersion 21 targetSdkVersion 28 - versionCode 108 - versionName "1.0.8" + versionCode 109 + versionName "1.0.9" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) diff --git a/app/src/main/java/net/schueller/peertube/activity/VideoPlayActivity.java b/app/src/main/java/net/schueller/peertube/activity/VideoPlayActivity.java index e4ee25d..b1cef54 100644 --- a/app/src/main/java/net/schueller/peertube/activity/VideoPlayActivity.java +++ b/app/src/main/java/net/schueller/peertube/activity/VideoPlayActivity.java @@ -206,14 +206,14 @@ public class VideoPlayActivity extends AppCompatActivity implements VideoRendere { // get video ID Intent intent = getIntent(); - String videoID = intent.getStringExtra(VideoListActivity.EXTRA_VIDEOID); - Log.v(TAG, "click: " + videoID); + String videoUuid = intent.getStringExtra(VideoListActivity.EXTRA_VIDEOID); + Log.v(TAG, "click: " + videoUuid); // get video details from api String apiBaseURL = APIUrlHelper.getUrlWithVersion(this); GetVideoDataService service = RetrofitInstance.getRetrofitInstance(apiBaseURL).create(GetVideoDataService.class); - Call