new release

This commit is contained in:
Page Asgardius 2023-01-03 10:51:07 -07:00
parent 6240ad14db
commit 6f6f9207cc
2 changed files with 7 additions and 2 deletions

View file

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

View file

@ -331,6 +331,7 @@ public class VideoPlayer extends AppCompatActivity {
public void onDestroy() {
mediaSessionConnector.setPlayer(null);
deleteCache(this, standaloneDatabaseProvider);
standaloneDatabaseProvider.close();
mediaSession.setActive(false);
playerNotificationManager.setPlayer(null);
@ -420,6 +421,10 @@ public class VideoPlayer extends AppCompatActivity {
super.onStop();
}
static void deleteCache(Context context, StandaloneDatabaseProvider database) {
SimpleCache.delete(new File(context.getCacheDir(), "media"), database);
}
public void onBackPressed() {
try {
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N