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" applicationId "asgardius.page.s3manager"
minSdk 23 minSdk 23
targetSdk 33 targetSdk 33
versionCode 61 versionCode 62
versionName "0.7.0" versionName "0.7.1"
setProperty("archivesBaseName", "s3-manager-$versionName") setProperty("archivesBaseName", "s3-manager-$versionName")
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

View file

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