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

Commit 960e83bd authored by nicolasroard's avatar nicolasroard
Browse files

Fix toast message when saving to Gallery

Change-Id: I0c4850185cf19e6e239c7d2d7bf7167b4ebaee0d
parent 3b311c3f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -78,6 +78,8 @@
    <string name="save_before_exit">Do you want to save before exiting?</string>
    <!--  String displayed when saving and exiting editor [CHAR LIMIT=NONE] -->
    <string name="save_and_exit">Save and Exit</string>
    <!--  String displayed when saving and exiting editor [CHAR LIMIT=NONE] -->
    <string name="save_and_processing">Processing full resolution image...</string>
    <!--  String displayed when exiting editor[CHAR LIMIT=NONE] -->
    <string name="exit">Exit</string>

+7 −1
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import android.provider.MediaStore.Images.ImageColumns;
import android.util.Log;
import android.widget.Toast;

import com.android.gallery3d.R;
import com.android.gallery3d.common.Utils;
import com.android.gallery3d.exif.ExifInterface;
import com.android.gallery3d.filtershow.FilterShowActivity;
@@ -359,7 +360,6 @@ public class SaveImage {
                savedUri = SaveImage.linkNewFileToUri(mContext, mSelectedImageUri,
                        mDestinationFile, time, doAuxBackup);
            }
            Toast.makeText(mContext, "Computing high resolution image...", Toast.LENGTH_LONG);
        }

        // Stopgap fix for low-memory devices.
@@ -515,6 +515,12 @@ public class SaveImage {
        filterShowActivity.startService(processIntent);

        if (!filterShowActivity.isSimpleEditAction()) {
            String toastMessage = filterShowActivity.getResources().getString(
                    R.string.save_and_processing);
            Toast.makeText(filterShowActivity,
                    toastMessage,
                    Toast.LENGTH_SHORT).show();

            // terminate for now
            filterShowActivity.completeSaveImage(selectedImageUri);
        }