mirror of https://github.com/axmolengine/axmol.git
Resolve the bug : login UI of 360 & UC can't be landscape.
This commit is contained in:
parent
a4ed92ddaa
commit
a718f8ba81
|
@ -16,6 +16,7 @@
|
|||
<meta-data android:name="QHOPENSDK_APPID" android:value="Your app_id" />
|
||||
<meta-data android:name="QHOPENSDK_APPKEY" android:value="Your app_key" />
|
||||
<meta-data android:name="QHOPENSDK_PRIVATEKEY" android:value="Your app_private_key" />
|
||||
<meta-data android:name="QHOPENSDK_CHANNEL" android:value="QH360" />
|
||||
</applicationCfg>
|
||||
<permissionCfg>
|
||||
<uses-permission android:name="android.permission.SEND_SMS" />
|
||||
|
|
|
@ -63,13 +63,13 @@ public class QH360Wrapper {
|
|||
Configuration config = ctx.getResources().getConfiguration();
|
||||
int orientation = config.orientation;
|
||||
|
||||
if (orientation != ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE ||
|
||||
orientation != ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
|
||||
if (orientation != Configuration.ORIENTATION_LANDSCAPE &&
|
||||
orientation != Configuration.ORIENTATION_PORTRAIT)
|
||||
{
|
||||
orientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT;
|
||||
orientation = Configuration.ORIENTATION_PORTRAIT;
|
||||
}
|
||||
|
||||
return (orientation == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
|
||||
return (orientation == Configuration.ORIENTATION_LANDSCAPE);
|
||||
}
|
||||
|
||||
private static boolean mLogined = false;
|
||||
|
|
|
@ -109,13 +109,13 @@ public class UCWrapper {
|
|||
Configuration config = ctx.getResources().getConfiguration();
|
||||
int orientation = config.orientation;
|
||||
|
||||
if (orientation != ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE ||
|
||||
orientation != ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
|
||||
if (orientation != Configuration.ORIENTATION_LANDSCAPE &&
|
||||
orientation != Configuration.ORIENTATION_PORTRAIT)
|
||||
{
|
||||
orientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT;
|
||||
orientation = Configuration.ORIENTATION_PORTRAIT;
|
||||
}
|
||||
|
||||
return (orientation == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
|
||||
return (orientation == Configuration.ORIENTATION_LANDSCAPE);
|
||||
}
|
||||
|
||||
public static String getSDKVersion() {
|
||||
|
|
Loading…
Reference in New Issue