Added: Add more SharedPrefernces for termux-float and use multi-process for log level

This commit is contained in:
agnostic-apollo
2021-09-02 06:20:39 +05:00
parent 1cf1e612e5
commit 36557b2166
6 changed files with 166 additions and 23 deletions

View File

@@ -173,7 +173,9 @@ public class ViewUtils {
/**
* Get device display size.
*
* @param context The {@link Context} to check with.
* @param context The {@link Context} to check with. It must be {@link Activity} context, otherwise
* android will throw:
* `java.lang.IllegalArgumentException: Used non-visual Context to obtain an instance of WindowManager. Please use an Activity or a ContextWrapper around one instead.`
* @param activitySize The set to {@link true}, then size returned will be that of the activity
* and can be smaller than physical display size in multi-window mode.
* @return Returns the display size as {@link Point}.