support deleting files from the app and specify upload params

This commit is contained in:
2025-04-15 18:35:47 -04:00
parent 05351ce364
commit 111ac2ee94
12 changed files with 668 additions and 60 deletions

View File

@@ -0,0 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/upload_params_title"
android:textSize="18sp"
android:textStyle="bold"
android:layout_marginBottom="16dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="8dp">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/max_downloads_label"
android:textSize="16sp" />
<EditText
android:id="@+id/maxDownloadsInput"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:inputType="number"
android:hint="@string/max_downloads_hint"
android:importantForAutofill="no" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/max_downloads_note"
android:textSize="12sp"
android:textStyle="italic"
android:layout_marginBottom="16dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom="8dp">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/expiry_time_label"
android:textSize="16sp" />
<EditText
android:id="@+id/expiryTimeInput"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:inputType="number"
android:hint="@string/expiry_time_hint"
android:importantForAutofill="no" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/expiry_time_note"
android:textSize="12sp"
android:textStyle="italic"
android:layout_marginBottom="16dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="end">
<Button
android:id="@+id/cancelButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/cancel_button"
style="@style/Widget.AppCompat.Button.Borderless" />
<Button
android:id="@+id/confirmButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/upload_button" />
</LinearLayout>
</LinearLayout>

View File

@@ -56,4 +56,15 @@
<string name="no_dumpstates_selected">No files selected</string>
<string name="preparing_multiple_files">Preparing %1$d files for upload…</string>
<string name="uploading_multiple_files">Uploading %1$d files as one package</string>
<!-- Upload Parameters Dialog -->
<string name="upload_params_title">Upload Parameters</string>
<string name="max_downloads_label">Maximum Downloads:</string>
<string name="max_downloads_hint">Default: 1</string>
<string name="max_downloads_note">Set to 0 for unlimited downloads</string>
<string name="expiry_time_label">Expiry Time (hours):</string>
<string name="expiry_time_hint">Default: 24</string>
<string name="expiry_time_note">Maximum 24 hours (1 day)</string>
<string name="cancel_button">Cancel</string>
<string name="upload_button">Upload</string>
</resources>