Refactoring

This commit is contained in:
M66B
2022-10-06 17:54:53 +02:00
parent ff0f2e9ec0
commit 0ef88ceaa0
2 changed files with 6 additions and 2 deletions

View File

@@ -55,6 +55,7 @@ import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.os.LocaleList;
import android.os.Looper;
import android.os.Parcel;
import android.os.PowerManager;
import android.os.StatFs;
@@ -2452,6 +2453,10 @@ public class Helper {
}
}
static boolean isUiThread() {
return (Looper.myLooper() == Looper.getMainLooper());
}
// Cryptography
static String sha256(String data) throws NoSuchAlgorithmException {