-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
refactor CocosActivity #16203
refactor CocosActivity #16203
Conversation
Interface Check ReportThis pull request does not change any public interfaces ! |
native/cocos/platform/android/java/src/com/cocos/lib/CocosEngine.java
Outdated
Show resolved
Hide resolved
native/cocos/platform/android/java/src/com/cocos/lib/CocosAudio.java
Outdated
Show resolved
Hide resolved
native/cocos/platform/android/java/src/com/cocos/lib/CocosEngine.java
Outdated
Show resolved
Hide resolved
mContext = null; | ||
} | ||
|
||
void init() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When will init be invoked?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be init at construct, but Actvity should be called after super.oncreate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and call initWithView instead
|
||
void resume() { | ||
mSensorHandler.onResume(); | ||
Utils.hideVirtualButton(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Utils.hideVirtualButton();
is invoked in CocosActivity.onResume, why do you have to invoke it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remove, it should be app's behavior
Re: # #14626
Changelog
Continuous Integration
This pull request:
Compatibility Check
This pull request: