|
|
@ -23,8 +23,6 @@ public class QQManager { |
|
|
|
|
|
|
|
|
|
|
|
private static String sAppId; |
|
|
|
private static String sAppId; |
|
|
|
|
|
|
|
|
|
|
|
private static IUiListener sIUiListener; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void initQQSDK(String appId) { |
|
|
|
public static void initQQSDK(String appId) { |
|
|
|
sAppId = appId; |
|
|
|
sAppId = appId; |
|
|
|
} |
|
|
|
} |
|
|
@ -47,14 +45,14 @@ public class QQManager { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static boolean onActivityResult(int requestCode, int resultCode, Intent intent) { |
|
|
|
public static boolean onActivityResult(int requestCode, int resultCode, Intent intent) { |
|
|
|
return Tencent.onActivityResultData(requestCode, resultCode, intent, sIUiListener); |
|
|
|
return Tencent.onActivityResultData(requestCode, resultCode, intent, null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static IUiListener newDefaultListener(ShareResultCallback shareResultCallback) { |
|
|
|
private static IUiListener newDefaultListener(ShareResultCallback shareResultCallback) { |
|
|
|
if (shareResultCallback == null) { |
|
|
|
if (shareResultCallback == null) { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
return sIUiListener = new IUiListener() { |
|
|
|
return new IUiListener() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void onComplete(Object o) { |
|
|
|
public void onComplete(Object o) { |
|
|
|
Timber.d("shareToQQ onComplete: " + o); |
|
|
|
Timber.d("shareToQQ onComplete: " + o); |
|
|
|