-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
[TCL Flip 2] Random white bar #249
Comments
This is not intentional and it doesn't happen on the testing devices. Could you please post a screenshot? Also what is your phone make and model? |
Really, I have no idea what is this... 🙁 Does the white bar appear always in the same applications? The apps on the screenshots look like native applications of the Flip 2, is it possible to install some popular application, for example: Viber, Messenger, Firefox, etc... and test there? Does the bar's position change when you open and close the same application? Have you tried the new v21.0? I brings significant layout changes that may or may not fix the problem. Also, try enabling the full on-screen keyboard and see if the bar is still there. |
Thank you for looking into this. I installed the latest version and the issue wasn't fixed. An interesting point to note is, on the first version that I installed, I believe it wa v16.5, it did not have this issue. I think this issue may have come about when the fix for; not being able to click "ok" or "send", was implemented. Thank you for all your work! |
Still, I need to know whether the bar remains there when you toggle the on-screen keys and numpad options. And, does it turn dark, when you change the theme to dark?
Thank you for the feedback. Hopefully, it will make the app better. |
Additionally, when I tried the on screen keyboard mode, I noticed that the bar is really just the keyboard being higher, as evidenced by the photos. |
This may be related to the I could try replacing it with a |
This issue is stale because it has been open for 100 days with no activity. |
@Pbeight, if I remember correctly, you are using a Qin F21 Pro now, but if you still have the TCL Flip 2, you can update to v31.0. After installing, go to Settings -> Appearance and scroll down to the Compatibility section. In there, enable the Always on Top option. It fixes a similar problem on Sonim phones, and it may fix it on the Flip 2. |
According to the latest comments in #555, the problem still persists. Unfortunately, I still have no idea what is causing it and how to fix it. |
Not sure if this is helpful at all, but I was looking at the decompiled launcher code for the TCL Flip 2, and it imports a package called There are these lines of code that I am assuming hides the menu bar: MenuBar menuBar = this.mMenuBar;
if (menuBar != null) {
menuBar.dismissOptionMenu();
} However, I have been unable to compile any test apps to include the EDIT: I pulled framework.jar from my phone and decompiled it to find MenuBar.java. It has a function public void hideMenuBar() {
setVisibility(8);
} It has been a while since I did anything with Java, so I am not sure how to proceed knowing this class exists in the modified Android SDK the TCL Flip 2 uses. I also am not sure whether this even fits into the scope of this project anymore. |
Every phone manufacturer modifies the SDK. It is entirely possible that there is a special
I have created an Where is getClass().getDeclaredField("mMenuBar").getClass().getDeclaredMethod("dismissOptionMenu").invoke(this); Of course, you need to handle all possible exceptions and NULL values to avoid crashing. If it works I can potentially put it in the right place and, ultimately, include the fix in the next version. |
I was able to hide the bar in a test app using int decorMenuBarId = getResources().getIdentifier("decor_menu_bar", "id", "android");
View decorMenuBar = findViewById(decorMenuBarId);
if (decorMenuBar != null) {
decorMenuBar.setVisibility(View.GONE);
} This is the device check that I put in public static boolean isTclFlip2() {
return Build.MANUFACTURER.equals("TCL") && Build.MODEL.contains("T408DL");
} However, I can't call |
When you do that, does the Menu bar disappear permanently or only while the current application is active and visible? If the effect is permanent, you can call If the effect is not permanent, there are two ways of calling
Intent intent = YourPopup.generateShowIntent(this);
startActivity(intent). All this is a bit messy, of course, but it is easy to do and test. If you manage to fix the problem somehow, I'll tidy up the code. It is not a problem. |
I have just found another way to search for a view. Again, in |
There's a white bar on top of the word bar which takes up much precious screen space (i have it set on "Don't show on screen keys"). Would it be possible to remove it. Thank you so much! Love the app!
The text was updated successfully, but these errors were encountered: