|
|
@@ -6,6 +6,7 @@ import android.content.Intent;
|
|
|
import android.content.pm.PackageManager;
|
|
|
import android.net.Uri;
|
|
|
import android.os.Bundle;
|
|
|
+import android.os.Handler;
|
|
|
import android.text.TextUtils;
|
|
|
import android.view.Gravity;
|
|
|
import android.view.View;
|
|
|
@@ -1452,17 +1453,30 @@ public class Jump2View {
|
|
|
/**
|
|
|
* 幂动科技
|
|
|
*/
|
|
|
- public void goMiDong(Activity activity, Object o){
|
|
|
+ public void goMiDong(final Activity activity, Object o){
|
|
|
if(!SheepApp.getInstance().isShowMidong()){
|
|
|
G.showToast("敬请期待");
|
|
|
return;
|
|
|
}
|
|
|
CommonUtil.getInstance().initMiDong(activity, DataUtil.getInstance().getUserId());
|
|
|
- if(SheepApp.getInstance().isInitMidong()){
|
|
|
- Intent intent = new Intent(activity, ActMiDong.class);
|
|
|
- activity.startActivity(intent);
|
|
|
- MI_DONG_VIEW.onEvent();
|
|
|
+ long l ;
|
|
|
+ if(SheepApp.getInstance().getMidongTimeCount() == 1){
|
|
|
+ l = 1000;
|
|
|
+ }else {
|
|
|
+ l = 0;
|
|
|
}
|
|
|
+ SheepApp.getInstance().setMidongTimeCount(SheepApp.getInstance().getMidongTimeCount()+1);
|
|
|
+ new Handler().postDelayed(new Runnable() {
|
|
|
+ @Override
|
|
|
+ public void run() {
|
|
|
+ if(SheepApp.getInstance().isInitMidong()){
|
|
|
+ Intent intent = new Intent(activity, ActMiDong.class);
|
|
|
+ activity.startActivity(intent);
|
|
|
+ MI_DONG_VIEW.onEvent();
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }, l);
|
|
|
}
|
|
|
/**
|
|
|
* 小米游戏列表
|