| | |
| | | public void onConfigurationChanged(Configuration newConfig) |
| | | { |
| | | //LogUtil.i(TAG, "onConfigurationChanged"); |
| | | NotchPhoneUtil.onConfigurationChanged(this, isNotch, mType, m_MainContainer); |
| | | if (isNotch) |
| | | { |
| | | NotchPhoneUtil.onConfigurationChanged(this, isNotch, mType, m_MainContainer); |
| | | } |
| | | else |
| | | { |
| | | mUnityPlayer.getView().getLayoutParams().width = gameWidth; |
| | | mUnityPlayer.getView().getLayoutParams().height = gameHeight; |
| | | } |
| | | |
| | | H2EngineSDK.onConfigurationChanged(newConfig); |
| | | |
| | | super.onConfigurationChanged(newConfig); |
| | | |
| | | mUnityPlayer.getView().getLayoutParams().width = gameWidth; |
| | | |
| | | mUnityPlayer.getView().getLayoutParams().height = gameHeight; |
| | | } |
| | | |
| | | @Override |