From ad1c4f2588aa1098b56c83863c6dceab065a10fd Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 6 Jun 2021 10:28:36 +0200 Subject: [PATCH] Cleanup --- app/src/main/java/eu/faircode/email/Log.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index 13fb8fe32f..68dc2a6148 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -24,7 +24,6 @@ import android.app.ApplicationExitInfo; import android.app.Dialog; import android.app.NotificationChannel; import android.app.NotificationManager; -import android.app.UiModeManager; import android.app.usage.UsageStatsManager; import android.content.Context; import android.content.DialogInterface; @@ -1693,15 +1692,6 @@ public class Log { .append(" yes=").append((uiMode & Configuration.UI_MODE_NIGHT_YES) != 0) .append("\r\n"); - UiModeManager uim = (UiModeManager) context.getSystemService(Context.UI_MODE_SERVICE); - int nightMode = uim.getNightMode(); - sb.append(String.format("Night mode: 0x")) - .append(Integer.toHexString(nightMode)) - .append(" no=").append((nightMode & UiModeManager.MODE_NIGHT_NO) != 0) - .append(" yes=").append((nightMode & UiModeManager.MODE_NIGHT_YES) != 0) - .append(" custom=").append((nightMode & UiModeManager.MODE_NIGHT_CUSTOM) != 0) - .append("\r\n"); - try { int maxKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength("AES"); sb.append(context.getString(R.string.title_advanced_aes_key_size, maxKeySize)).append("\r\n");