test release

This commit is contained in:
Page Asgardius 2022-10-06 14:20:54 -07:00
parent 1b850d922f
commit 13d64cc507
2 changed files with 6 additions and 4 deletions

View file

@ -9,8 +9,8 @@ android {
applicationId "asgardius.page.s3manager" applicationId "asgardius.page.s3manager"
minSdk 24 minSdk 24
targetSdk 33 targetSdk 33
versionCode 24 versionCode 25
versionName "0.1.22" versionName "0.1.23"
setProperty("archivesBaseName", "s3-manager-$versionName") setProperty("archivesBaseName", "s3-manager-$versionName")
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

View file

@ -87,6 +87,8 @@ public class Settings extends AppCompatActivity {
videotime = vtimepick.getText().toString(); videotime = vtimepick.getText().toString();
if (videocache.equals("") || videotime.equals("")) { if (videocache.equals("") || videotime.equals("")) {
Toast.makeText(getApplicationContext(),getResources().getString(R.string.accountadd_null), Toast.LENGTH_SHORT).show(); Toast.makeText(getApplicationContext(),getResources().getString(R.string.accountadd_null), Toast.LENGTH_SHORT).show();
}else if (Integer.parseInt(videotime) > 168) {
Toast.makeText(getApplicationContext(),getResources().getString(R.string.invalid_expiration_date), Toast.LENGTH_SHORT).show();
} else { } else {
db = dbHelper.getWritableDatabase(); db = dbHelper.getWritableDatabase();
db.execSQL("UPDATE preferences SET value='" + videocache + "' where setting='videocache'"); db.execSQL("UPDATE preferences SET value='" + videocache + "' where setting='videocache'");