Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c17bdc20 authored by Inhishonor's avatar Inhishonor Committed by Łukasz Patron
Browse files

Gallery2: Change harcoded toast string to a resource

Change-Id: I045727110c42a04e14fcf1fceb8aaa6e3c610ff4
parent d93c7391
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -17,4 +17,7 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- Text indicating the time a media item was recorded in details window [CHAR LIMIT=14] -->
    <string name="record_time">Record time</string>

    <!-- Used in toast message when more than one picture is selected [CHAR LIMIT=50] -->
    <string name="select_one_picture">Please select one picture</string>
</resources>
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ public class WidgetConfigure extends Activity {
        int widgetHeight = Math.round(height * scale);

        if (data.getData() != null && data.getData().toString().contains("/video/media")) {
            Toast.makeText(this, "Please select one picture", Toast.LENGTH_LONG).show();
            Toast.makeText(this, R.string.select_one_picture, Toast.LENGTH_LONG).show();
            Intent request = new Intent(this, DialogPicker.class)
                    .setAction(Intent.ACTION_GET_CONTENT)
                    .setType("image/*");