Improved logging

This commit is contained in:
M66B 2020-03-19 11:52:09 +01:00
parent 837a6720e5
commit 2759efc61a
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,7 @@ public class Shortcuts {
int app = ShortcutManagerCompat.getMaxShortcutCountPerActivity(context);
int manifest = sm.getManifestShortcuts().size();
int count = app - manifest;
Log.i("Shortcuts count=" + count + " app=" + app + " manifest=" + manifest);
EntityLog.log(context, "Shortcuts count=" + count + " app=" + app + " manifest=" + manifest);
DB db = DB.getInstance(context);
List<String> emails = new ArrayList<>();
@ -76,6 +76,7 @@ public class Shortcuts {
if (emails.contains(email))
continue;
emails.add(email);
EntityLog.log(context, "Shortcut email=" + email);
Intent intent = new Intent(context, ActivityMain.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);