remove placeholder credentials

This commit is contained in:
Page Asgardius 2022-09-04 16:48:43 -07:00
parent 14e685c898
commit 9c57b6d261
4 changed files with 1 additions and 28 deletions

View file

@ -134,7 +134,6 @@ public class MainActivity extends AppCompatActivity {
@Override
public void onClick(View view) {
//buttonaction
testaccount();
}
});
}
@ -156,18 +155,4 @@ public class MainActivity extends AppCompatActivity {
}
private void testaccount() {
MyDbHelper dbHelper = new MyDbHelper(this);
SQLiteDatabase db = dbHelper.getWritableDatabase();
if (db != null) {
// Database Queries
try {
db.execSQL("INSERT INTO account VALUES (\"test account\", \""+getResources().getString(R.string.endpoint_url)+"\", \""+getString(R.string.access_key)+"\", \""+getResources().getString(R.string.secret_key)+"\")");
System.out.println("Insert OK");
} catch (Exception e) {
System.out.println("Insert error");
}
}
}
}

View file

@ -17,8 +17,6 @@
android:hint="@string/accountadd_alias"
android:importantForAutofill="no"
android:inputType="text"
android:textColorHighlight="#ff7eff15"
android:textColorHint="#ffff25e6"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="MissingConstraints" />
@ -33,8 +31,6 @@
android:hint="@string/accountadd_endpoint"
android:importantForAutofill="no"
android:inputType="textUri"
android:textColorHighlight="#ff7eff15"
android:textColorHint="#ffff25e6"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="MissingConstraints" />
@ -49,8 +45,6 @@
android:focusable="true"
android:hint="@string/accountadd_username"
android:inputType="textNoSuggestions"
android:textColorHighlight="#ff7eff15"
android:textColorHint="#ffff25e6"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="MissingConstraints" />
@ -65,8 +59,6 @@
android:focusable="true"
android:hint="@string/accountadd_password"
android:inputType="textPassword"
android:textColorHighlight="#ff7eff15"
android:textColorHint="#ffff25e6"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="MissingConstraints" />

View file

@ -38,7 +38,7 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/explorer_test_button"
android:text="@string/dummy_button"
tools:ignore="MissingConstraints" />
</LinearLayout>

View file

@ -1,10 +1,6 @@
<resources>
<string name="app_name">Asgardius S3 Manager</string>
<string name="title_activity_video_player">VideoPlayer</string>
<!-- S3 credentials are being used during development process and will become useless when account manager is ready -->
<string name="endpoint_url">https://object.asgardius.company</string>
<string name="access_key">asgardius</string>
<string name="secret_key">DTMp5kftamr49Ke7</string>
<string name="accountselect">Please choose an account</string>
<string name="accountadd_button">Add Account</string>
<string name="accountadd_alias">Account Alias</string>