new release

This commit is contained in:
Page Asgardius 2022-12-20 19:47:23 -07:00
parent 22dc38ddef
commit 4f272ae199
3 changed files with 16 additions and 4 deletions

View file

@ -9,8 +9,8 @@ android {
applicationId "asgardius.page.s3manager" applicationId "asgardius.page.s3manager"
minSdk 23 minSdk 23
targetSdk 33 targetSdk 33
versionCode 42 versionCode 43
versionName "0.3.3" versionName "0.3.4"
setProperty("archivesBaseName", "s3-manager-$versionName") setProperty("archivesBaseName", "s3-manager-$versionName")
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

View file

@ -334,8 +334,19 @@ public class VideoPlayer extends AppCompatActivity {
} }
public void onStop() { public void onStop() {
if(isScreenOn(this)) { try {
finish(); if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.S
&& this.getPackageManager()
.hasSystemFeature(
PackageManager.FEATURE_PICTURE_IN_PICTURE) && appOpsManager.checkOpNoThrow(
AppOpsManager.OPSTR_PICTURE_IN_PICTURE,
this.getPackageManager().getApplicationInfo(this.getPackageName(),
PackageManager.GET_META_DATA).uid, this.getPackageName())
== AppOpsManager.MODE_ALLOWED && isScreenOn(this)) {
finish();
}
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
} }
super.onStop(); super.onStop();
} }

View file

@ -0,0 +1 @@
* Fix background playback issues