mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Bring back external attachment storage
This commit is contained in:
@@ -57,6 +57,7 @@ import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.Debug;
|
||||
import android.os.Environment;
|
||||
import android.os.IBinder;
|
||||
import android.os.LocaleList;
|
||||
import android.os.PowerManager;
|
||||
@@ -1647,6 +1648,10 @@ public class DebugHelper {
|
||||
ai.sourceDir, ai.publicSourceDir));
|
||||
size += write(os, String.format("Files: %s\r\n", context.getFilesDir()));
|
||||
|
||||
File external = Helper.getExternalFilesDir(context);
|
||||
boolean emulated = (external != null && Environment.isExternalStorageEmulated(external));
|
||||
size += write(os, String.format("External: %s emulated: %b\r\n", external, emulated));
|
||||
|
||||
size += write(os, String.format("Cache: %s\r\n external: %s\n",
|
||||
context.getCacheDir(), context.getExternalCacheDir()));
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
|
||||
|
||||
Reference in New Issue
Block a user