This commit is contained in:
M66B 2021-06-06 10:28:36 +02:00
parent 3452cc5089
commit ad1c4f2588
1 changed files with 0 additions and 10 deletions

View File

@ -24,7 +24,6 @@ import android.app.ApplicationExitInfo;
import android.app.Dialog; import android.app.Dialog;
import android.app.NotificationChannel; import android.app.NotificationChannel;
import android.app.NotificationManager; import android.app.NotificationManager;
import android.app.UiModeManager;
import android.app.usage.UsageStatsManager; import android.app.usage.UsageStatsManager;
import android.content.Context; import android.content.Context;
import android.content.DialogInterface; import android.content.DialogInterface;
@ -1693,15 +1692,6 @@ public class Log {
.append(" yes=").append((uiMode & Configuration.UI_MODE_NIGHT_YES) != 0) .append(" yes=").append((uiMode & Configuration.UI_MODE_NIGHT_YES) != 0)
.append("\r\n"); .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 { try {
int maxKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength("AES"); int maxKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength("AES");
sb.append(context.getString(R.string.title_advanced_aes_key_size, maxKeySize)).append("\r\n"); sb.append(context.getString(R.string.title_advanced_aes_key_size, maxKeySize)).append("\r\n");