mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-09 03:54:17 +08:00
Added: Add more SharedPrefernces for termux-float and use multi-process for log level
This commit is contained in:
@@ -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}.
|
||||
|
Reference in New Issue
Block a user