Skip to content

Commit

Permalink
added toast while saving image
Browse files Browse the repository at this point in the history
  • Loading branch information
DevEmperor committed Feb 19, 2024
1 parent 197a00f commit 1d12f3f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import android.widget.ProgressBar;
import android.widget.ScrollView;
import android.widget.TextView;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;
import androidx.constraintlayout.widget.ConstraintLayout;
Expand Down Expand Up @@ -243,6 +244,8 @@ public void shareImage(View view) {
}

public void saveImage(View view) {
Toast.makeText(this, R.string.wristassist_saving, Toast.LENGTH_SHORT).show();

ImageModel imageModel;
if (model.equals("dall-e-3")) {
imageModel = new ImageModel(-1, prompt, image.getRevisedPrompt(), model, quality, size, style, imageResult.getCreated() * 1000, image.getUrl());
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-de-rDE/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,5 @@
<string name="wristassist_image_expires_in" formatted="false">Geteilter Link läuft in %1$d Minuten ab</string>
<string name="wristassist_image_request_rejected">Die Anfrage wurde abgelehnt. Deine Anfrage enthält möglicherweise Text, der nicht erlaubt ist.</string>
<string name="changelog_md_26">### Version 3.0.0 \n#### Bilder KI (DALL-E) hinzugefügt \nDu kannst nun mit OpenAI\'s Dall-E Bilder generieren, speichern und über einen QR-Code teilen. In den Einstellungen kannst du zwischen verschiedenen Modellen, Qualitäten und Größen wechseln. \n#### Mehrere Fehlerbehebungen und Design Änderungen \n</string>
<string name="wristassist_saving">Speichert …</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@
<string name="wristassist_image_expires_in" formatted="false">Shared link will expire in %1$d minutes</string>
<string name="wristassist_image_request_rejected">The request was rejected. Your prompt may contain text that is not allowed.</string>
<string name="changelog_md_26">### Version 3.0.0 \n#### Added image AI (DALL-E) \nYou can now use OpenAI\'s Dall-E to generate, save and share images via a QR code. You can switch between different models, qualities and sizes in the settings. \n#### Several bugfixes and design changes \n</string>
<string name="wristassist_saving">Saving …</string>
</resources>

0 comments on commit 1d12f3f

Please sign in to comment.