Merge "Fix screenshot exif attributes"
This commit is contained in:
committed by
Android (Google) Code Review
commit
fbfcea7718
@@ -74,6 +74,7 @@ android_library {
|
||||
"androidx.lifecycle_lifecycle-extensions",
|
||||
"androidx.dynamicanimation_dynamicanimation",
|
||||
"androidx-constraintlayout_constraintlayout",
|
||||
"androidx.exifinterface_exifinterface",
|
||||
"kotlinx-coroutines-android",
|
||||
"kotlinx-coroutines-core",
|
||||
"iconloader_base",
|
||||
@@ -140,6 +141,7 @@ android_library {
|
||||
"androidx.lifecycle_lifecycle-extensions",
|
||||
"androidx.dynamicanimation_dynamicanimation",
|
||||
"androidx-constraintlayout_constraintlayout",
|
||||
"androidx.exifinterface_exifinterface",
|
||||
"kotlinx-coroutines-android",
|
||||
"kotlinx-coroutines-core",
|
||||
"iconloader_base",
|
||||
|
||||
@@ -231,7 +231,7 @@
|
||||
<!-- Notification text displayed when we fail to save a screenshot for unknown reasons. [CHAR LIMIT=100] -->
|
||||
<string name="screenshot_failed_to_save_unknown_text">Try taking screenshot again</string>
|
||||
<!-- Notification text displayed when we fail to save a screenshot. [CHAR LIMIT=100] -->
|
||||
<string name="screenshot_failed_to_save_text">Can\'t save screenshot due to limited storage space</string>
|
||||
<string name="screenshot_failed_to_save_text">Can\'t save screenshot</string>
|
||||
<!-- Notification text displayed when we fail to take a screenshot. [CHAR LIMIT=100] -->
|
||||
<string name="screenshot_failed_to_capture_text">Taking screenshots isn\'t allowed by the app or
|
||||
your organization</string>
|
||||
|
||||
@@ -34,7 +34,6 @@ import android.content.Intent;
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.drawable.Icon;
|
||||
import android.media.ExifInterface;
|
||||
import android.net.Uri;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Build;
|
||||
@@ -52,6 +51,8 @@ import android.text.TextUtils;
|
||||
import android.text.format.DateUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.exifinterface.media.ExifInterface;
|
||||
|
||||
import com.android.internal.annotations.VisibleForTesting;
|
||||
import com.android.internal.config.sysui.SystemUiDeviceConfigFlags;
|
||||
import com.android.systemui.R;
|
||||
@@ -78,7 +79,7 @@ import java.util.concurrent.CompletableFuture;
|
||||
/**
|
||||
* An AsyncTask that saves an image to the media store in the background.
|
||||
*/
|
||||
class SaveImageInBackgroundTask extends AsyncTask<Void, Void, Void> {
|
||||
class SaveImageInBackgroundTask extends AsyncTask<Void, Void, Void> {
|
||||
private static final String TAG = logTag(SaveImageInBackgroundTask.class);
|
||||
|
||||
private static final String SCREENSHOT_FILE_NAME_TEMPLATE = "Screenshot_%s.png";
|
||||
|
||||
Reference in New Issue
Block a user