new release
This commit is contained in:
parent
6240ad14db
commit
6f6f9207cc
2 changed files with 7 additions and 2 deletions
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue