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"
minSdk 24
targetSdk 33
versionCode 24
versionName "0.1.22"
versionCode 25
versionName "0.1.23"
setProperty("archivesBaseName", "s3-manager-$versionName")
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

View file

@ -87,10 +87,12 @@ public class Settings extends AppCompatActivity {
videotime = vtimepick.getText().toString();
if (videocache.equals("") || videotime.equals("")) {
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 {
db = dbHelper.getWritableDatabase();
db.execSQL("UPDATE preferences SET value='"+videocache+"' where setting='videocache'");
db.execSQL("UPDATE preferences SET value='"+videotime+"' where setting='videotime'");
db.execSQL("UPDATE preferences SET value='" + videocache + "' where setting='videocache'");
db.execSQL("UPDATE preferences SET value='" + videotime + "' where setting='videotime'");
db.close();
mainmenu();
}