Loading packages/SystemUI/res/values/cm_strings.xml +1 −0 Original line number Diff line number Diff line Loading @@ -111,5 +111,6 @@ <!-- Screenshot delete --> <string name="screenshot_delete_action">Delete</string> <string name="screenshot_delete_confirmation">Screenshot deleted.</string> </resources> packages/SystemUI/src/com/android/systemui/screenshot/DeleteScreenshot.java +4 −0 Original line number Diff line number Diff line Loading @@ -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 { Loading @@ -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(); } } Loading
packages/SystemUI/res/values/cm_strings.xml +1 −0 Original line number Diff line number Diff line Loading @@ -111,5 +111,6 @@ <!-- Screenshot delete --> <string name="screenshot_delete_action">Delete</string> <string name="screenshot_delete_confirmation">Screenshot deleted.</string> </resources>
packages/SystemUI/src/com/android/systemui/screenshot/DeleteScreenshot.java +4 −0 Original line number Diff line number Diff line Loading @@ -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 { Loading @@ -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(); } }