1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 13:44:40 +00:00

Add debug info

This commit is contained in:
M66B 2024-10-09 10:42:40 +02:00
parent 6204ecba36
commit 98396f421f

View file

@ -132,7 +132,11 @@ public class ActivityCompose extends ActivityBase implements FragmentManager.OnB
private void handle(Intent intent, boolean create) {
Bundle args;
String action = intent.getAction();
Log.i("Handle action=" + action + " create=" + create + " " + this);
Log.i("Handle action=" + action +
" shared=" + isShared(action) +
" create=" + create +
" uri=" + intent.getData() +
" " + this);
if (isShared(action)) {
args = new Bundle();
@ -281,6 +285,8 @@ public class ActivityCompose extends ActivityBase implements FragmentManager.OnB
} else
args = intent.getExtras();
Log.logBundle(args);
FragmentManager fm = getSupportFragmentManager();
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
boolean attach_new = prefs.getBoolean("attach_new", true);