diff options
author | stefan-niedermann <info@niedermann.it> | 2020-03-07 17:02:39 +0300 |
---|---|---|
committer | stefan-niedermann <info@niedermann.it> | 2020-03-07 17:02:39 +0300 |
commit | 30363cbf4db19e344fbea401fe6f7cc4da2f6ea3 (patch) | |
tree | dacc0e2a6c61e49708cdf9e30eb6eaad0e2f1b0c /app/src/main | |
parent | 6c700ec2575d41d4da7e727bbe7e6c5fe36ac4b5 (diff) |
Extract string resources
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/AndroidManifest.xml | 6 | ||||
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/EditActivity.java | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 18b546abf..727b1df58 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -47,6 +47,12 @@ android:parentActivityName="it.niedermann.nextcloud.deck.ui.MainActivity" /> <activity + android:name=".ui.AttachmentsActivity" + android:label="@string/attachments" + android:theme="@style/AppTheme" + android:parentActivityName="it.niedermann.nextcloud.deck.ui.EditActivity" /> + + <activity android:name=".ui.SettingsActivity" android:label="@string/simple_settings" android:theme="@style/AppTheme" diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/EditActivity.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/EditActivity.java index 3ba577413..127f0e30f 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/EditActivity.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/EditActivity.java @@ -190,8 +190,8 @@ public class EditActivity extends AppCompatActivity implements } if (fullCard.getCard().getTitle().isEmpty()) { new AlertDialog.Builder(this) - .setTitle("Title is mandatory") - .setMessage("Provide at least a title or description") + .setTitle(R.string.title_is_mandatory) + .setMessage(R.string.provide_at_least_a_title_or_description) .setPositiveButton(android.R.string.ok, null) .setOnDismissListener(dialog -> { pendingCreation = false; |