Resolve the bug : login UI of 360 & UC can't be landscape.

This commit is contained in:
zhangbin 2013-07-24 15:29:54 +08:00
parent a4ed92ddaa
commit a718f8ba81
3 changed files with 9 additions and 8 deletions

View File

@ -16,6 +16,7 @@
<meta-data android:name="QHOPENSDK_APPID" android:value="Your app_id" /> <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_APPKEY" android:value="Your app_key" />
<meta-data android:name="QHOPENSDK_PRIVATEKEY" android:value="Your app_private_key" /> <meta-data android:name="QHOPENSDK_PRIVATEKEY" android:value="Your app_private_key" />
<meta-data android:name="QHOPENSDK_CHANNEL" android:value="QH360" />
</applicationCfg> </applicationCfg>
<permissionCfg> <permissionCfg>
<uses-permission android:name="android.permission.SEND_SMS" /> <uses-permission android:name="android.permission.SEND_SMS" />

View File

@ -63,13 +63,13 @@ public class QH360Wrapper {
Configuration config = ctx.getResources().getConfiguration(); Configuration config = ctx.getResources().getConfiguration();
int orientation = config.orientation; int orientation = config.orientation;
if (orientation != ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE || if (orientation != Configuration.ORIENTATION_LANDSCAPE &&
orientation != ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) 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; private static boolean mLogined = false;

View File

@ -109,13 +109,13 @@ public class UCWrapper {
Configuration config = ctx.getResources().getConfiguration(); Configuration config = ctx.getResources().getConfiguration();
int orientation = config.orientation; int orientation = config.orientation;
if (orientation != ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE || if (orientation != Configuration.ORIENTATION_LANDSCAPE &&
orientation != ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) 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() { public static String getSDKVersion() {