Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App cannot be interacted with to do anything, in the floating window #2

Open
N-U-ser opened this issue Oct 4, 2024 · 2 comments
Open

Comments

@N-U-ser
Copy link

N-U-ser commented Oct 4, 2024

Please do this for next dev build, if not anything else. It is necessary for testing purposes.

Please make it so that the last chosen size and dpi etc. settings are default settings when launching an app.

As of now, i have not been able to find a [ SIZE + DPI + RATIO ] Configuration that displays the whole app in floating in floating window, i.e. Not cropped at bottom/ Right side Or some Ui elements not visible. And Resetting config settings on each launch doesn't make it easier either.

There was another issue that has been arising, when trying to interact to ui element in floating window cropped app ,it seems as when touching at one point registers the touch at another point. When touching the ui element 2-3 times because desired result wasn't produced the first time, lag occurs and the due to error app gets FULLSCREENed.

I was thinking it was due the incorrect size and therefore incorrect touch mapping and hoping to confirm this by launching it in correct size and seeing the behavior then.

Due to this issue, app cannot be interacted in floating window to do anything.

Some examples:-
1)
Screenshot_2024-10-04-12-07-32-909_com miui home
2)
Screenshot_2024-10-04-12-08-58-011_com opera browser
3) Screenshot_2024-10-04-12-10-00-869_dev legendsayantan extendroid
4) Screenshot_2024-10-04-12-10-17-979_com opera browser
5) Screenshot_2024-10-04-12-10-25-175_com opera browser

@N-U-ser
Copy link
Author

N-U-ser commented Oct 4, 2024

These link of apps may provide you information on tested/working window sizes

Taskbar
https://github.com/farmerbb/Taskbar

Mi-Freeform
https://github.com/sunshine0523/Mi-Freeform

Currently i use Tasker to send intent (Taskbar) with activity name as extras to be launched in floating window and this happens using Tasker scene which works as a Custom(-isable) Sidebar, with different Size (as far as Taskbar allows) and Launch mode options.

Screenshot_2024-10-04-15-35-20-813_com opera browser
Screenshot_2024-10-04-15-35-42-032_com opera browser

But Taskbar has some major issues and the dev hasn't been releasing updates frequently. I think Extendroid (with Shizuku) has the potential to do much more than Taskbar. Some issues of Taskbar are ,

  1. Taskbar doesn't allow user to launch bounds as an extra for the intent which is bad because in landscape mode, when app launches top half get cuts off and screen needs to be rotated to fix it
  2. When chosen app present in recents, it resumes in floating window, when using Taskbar's interface.
    But same doesn't happen when launching using intent, it restarts.
  3. After android 13 update several issues have been popping up it...

By the way, these are not random ramblings. Reasons,

  1. Taskbar and Extendroid are of same category. Therefore, Taskbar's issues can be Extendroid's potential issues which can be solved ahead of time.
  2. Much needed features mentioned which Taskbar lacks right now, if present in Extendroid, will make it indispensable.
  3. As for the Sidebar that has been mentioned, if the app provides sufficient third-party integration (like intents), it can used by other apps as a plugin such as Launcher apps like Nova launcher Or Sidebar app like Panels.

@N-U-ser
Copy link
Author

N-U-ser commented Oct 4, 2024

This is the default size config for MIUI Floating Window.

Screen size | 1080 x 2400
Launch Bounds | (162 , 261) - (1242 , 1989)
Freeform size in pixel | 1080 x 1728
Window aspect ratio | 5:8
Freeform scaling | 0.7 or 70%
Screenshot_2024-10-04-16-32-22-079_com heytap headset

Also, maybe dpi = 440

This is log which helped in determining this,

BubbleRemoteService:
dispatchFreeFormStackModeChanged: action=0 cu=0 stackInfo=Stack id=1005671 bounds=[162,261][1242,1989] displayId=0 userId=10 windowState=0 freeFormScale=0.7 packageName=com.heytap.headset configuration={1.0 405mcc871mnc [en_IN] ldltr sw392dp w392dp h628dp 440dpi nrml port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(162, 261 - 1242, 1989) mAppBounds=Rect(162, 261 - 1242, 1989) mMaxBounds=Rect(0, 0 - 1080, 2400) mDisplayRotation=ROTATION_0 mWindowingMode=freeform mDisplayWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=on mRotation=ROTATION_0 mInSplitScreen=false letterBoxed=false} as.25 s.75672 fontWeightAdjustment=0 themeChanged=0 themeChangedFlags=0 extraData = Bundle[EMPTY_PARCEL]/d} inPinMode=false windowScaleX=0.0 windowScaleY=0.0 windowRoundCorner=0.0 pinFloatingWindowPos=Rect(0, 0 - 0, 0)

This app was launched by miui sidebar, for record.
Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant