avoid multiple instances

This commit is contained in:
Page Asgardius 2022-10-09 15:02:03 -07:00
parent 55e405537e
commit 1756d2329c
8 changed files with 26 additions and 2 deletions

View file

@ -0,0 +1,20 @@
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "asgardius.page.s3manager",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 28,
"versionName": "0.1.26",
"outputFile": "s3-manager-0.1.26-release.apk"
}
],
"elementType": "File"
}

Binary file not shown.

Binary file not shown.

View file

@ -90,6 +90,7 @@
android:supportsPictureInPicture="true"
android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize|screenLayout|uiMode|keyboardHidden"
android:exported="false"
android:launchMode="singleTask"
android:theme="@style/Theme.AsgardiusS3Manager.NoActionBar" />
<activity
android:name=".MainActivity"

View file

@ -224,6 +224,7 @@ public class VideoPlayer extends AppCompatActivity {
player.release();
playerView.setPlayer(null);
simpleCache.release();
finish();
}
super.onStop();
}

View file

@ -70,7 +70,7 @@
android:layout_width="match_parent"
android:layout_height="70dp"
android:text="@string/save_settings"
android:textColor="#ffffff"
android:textColor="?android:attr/colorBackground"
android:textSize="24sp" />
<Button
@ -78,7 +78,7 @@
android:layout_width="match_parent"
android:layout_height="70dp"
android:text="@string/about_button"
android:textColor="#ffffff"
android:textColor="?android:attr/colorBackground"
android:textSize="24sp" />
</LinearLayout>

View file

@ -91,4 +91,5 @@
<string name="videotime">Tiempo de expiración para visor multimedia (en horas)</string>
<string name="buffersize">Tamaño del buffer del reproductor multimedia (en milisegundos)</string>
<string name="buffersize_error">El tamaño del búfer debe ser de al menos 2001 milisegundos</string>
<string name="mediaplayer_multierror">Solo se puede reproducir un archivo multimedia a la vez</string>
</resources>

View file

@ -95,4 +95,5 @@
<string name="videotime">Expiration time for media viewer (in hours)</string>
<string name="buffersize">Media player buffer size (in milliseconds)</string>
<string name="buffersize_error">Buffer size must be at least 2001 milliseconds</string>
<string name="mediaplayer_multierror">Only one media file can be played at once</string>
</resources>