-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
Android applications derive window title from the app name, not window.title #2015
Comments
Can you assign this issue to me? |
@charlietrumm Done. If you need any pointers or assistance, let us know! |
I just want to make sure that I know exactly what the bug is. I beleive that the bug is when you supply the window name it is always set to the formal name. This is what I have recreated on the emulator by modifying this line: toga.MainWindow(title="Some Random Title"). I always get the title on android being the formal name (Hello World) even if I supply one with the code above. |
I am looking to fix bugs in briefcase. Is this not a bug with toga? |
@charlietrumm You've correctly understood the problem; and yes, some of the solution will probably involve a change to Toga, and may be entirely Toga-based. However, there may also be a need to change the template that Briefcase uses so as to expose a capability that Toga can modify. |
I have been trying for a while to get my Toga code running. I need to debug toga-android code. |
I'm not sure I completely understand what you're trying to do here, but reading between the lines, I think you're having problems using a "development" version of Toga inside your briefcase project. If that's the case: You don't need to make any changes to Briefcase. In your briefcase project, modify the
to read:
(modifying the path as appropriate to point at your Toga code checkout) You'll also need to modify the "project-wide" requires block, which will be empty:
to read:
Then re-create, build, and run your Android project. If that's not what you're trying to describe, you may want to drop into the Discord chat room so we can provide more interactive help. |
I'm going to migrate this to Toga, as it appears to be entirely a Toga issue, caused by the fact that |
By default, the formal app name and the window title are the same. However, you can pass
title
to the constructor for MainWindow; if you do, that name should be the name of the main window.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The main window should adopt the value of
main_window.title
, rather than the app's formal name.Environment:
The text was updated successfully, but these errors were encountered: