From 13d64cc50729fb03c727e3461d566cff33d34b6c Mon Sep 17 00:00:00 2001 From: Page Asgardius Date: Thu, 6 Oct 2022 14:20:54 -0700 Subject: [PATCH] test release --- app/build.gradle | 4 ++-- app/src/main/java/asgardius/page/s3manager/Settings.java | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index b05c95a..0edb6b8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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" diff --git a/app/src/main/java/asgardius/page/s3manager/Settings.java b/app/src/main/java/asgardius/page/s3manager/Settings.java index 942d6d3..c87255b 100644 --- a/app/src/main/java/asgardius/page/s3manager/Settings.java +++ b/app/src/main/java/asgardius/page/s3manager/Settings.java @@ -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(); }