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

Commit d12208a3 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

Merge "Show confirmation for deleted screenshot." into cm-11.0

parents bfad6e62 5aa9b4fa
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -111,5 +111,6 @@

    <!-- Screenshot delete -->
    <string name="screenshot_delete_action">Delete</string>
    <string name="screenshot_delete_confirmation">Screenshot deleted.</string>

</resources>
+4 −0
Original line number Diff line number Diff line
@@ -22,7 +22,9 @@ import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.widget.Toast;

import com.android.systemui.R;
import com.android.systemui.screenshot.GlobalScreenshot;

public class DeleteScreenshot extends BroadcastReceiver {
@@ -47,5 +49,7 @@ public class DeleteScreenshot extends BroadcastReceiver {
        NotificationManager notificationManager =
                (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
        notificationManager.cancel(GlobalScreenshot.SCREENSHOT_NOTIFICATION_ID);

        Toast.makeText(context, R.string.screenshot_delete_confirmation, Toast.LENGTH_SHORT).show();
    }
}