new release
This commit is contained in:
parent
22dc38ddef
commit
4f272ae199
3 changed files with 16 additions and 4 deletions
|
@ -9,8 +9,8 @@ android {
|
|||
applicationId "asgardius.page.s3manager"
|
||||
minSdk 23
|
||||
targetSdk 33
|
||||
versionCode 42
|
||||
versionName "0.3.3"
|
||||
versionCode 43
|
||||
versionName "0.3.4"
|
||||
setProperty("archivesBaseName", "s3-manager-$versionName")
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
|
|
@ -334,8 +334,19 @@ public class VideoPlayer extends AppCompatActivity {
|
|||
}
|
||||
|
||||
public void onStop() {
|
||||
if(isScreenOn(this)) {
|
||||
finish();
|
||||
try {
|
||||
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();
|
||||
}
|
||||
|
|
1
fastlane/metadata/android/en-US/changelogs/43.txt
Normal file
1
fastlane/metadata/android/en-US/changelogs/43.txt
Normal file
|
@ -0,0 +1 @@
|
|||
* Fix background playback issues
|
Loading…
Reference in a new issue