|
@@ -14,7 +14,6 @@ import android.graphics.drawable.Drawable;
|
|
|
import android.media.MediaPlayer;
|
|
import android.media.MediaPlayer;
|
|
|
import android.net.Uri;
|
|
import android.net.Uri;
|
|
|
import android.os.Build;
|
|
import android.os.Build;
|
|
|
-import android.os.Bundle;
|
|
|
|
|
import android.provider.MediaStore;
|
|
import android.provider.MediaStore;
|
|
|
import android.support.v7.app.AlertDialog;
|
|
import android.support.v7.app.AlertDialog;
|
|
|
import android.support.v7.widget.GridLayoutManager;
|
|
import android.support.v7.widget.GridLayoutManager;
|
|
@@ -23,23 +22,19 @@ import android.text.Html;
|
|
|
import android.text.TextUtils;
|
|
import android.text.TextUtils;
|
|
|
import android.text.method.ScrollingMovementMethod;
|
|
import android.text.method.ScrollingMovementMethod;
|
|
|
import android.util.DisplayMetrics;
|
|
import android.util.DisplayMetrics;
|
|
|
-import android.util.Log;
|
|
|
|
|
import android.view.Display;
|
|
import android.view.Display;
|
|
|
import android.view.Gravity;
|
|
import android.view.Gravity;
|
|
|
import android.view.LayoutInflater;
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.View;
|
|
import android.view.View;
|
|
|
-import android.view.ViewGroup;
|
|
|
|
|
import android.view.Window;
|
|
import android.view.Window;
|
|
|
import android.view.WindowManager;
|
|
import android.view.WindowManager;
|
|
|
import android.webkit.WebView;
|
|
import android.webkit.WebView;
|
|
|
-import android.widget.Button;
|
|
|
|
|
import android.widget.CheckBox;
|
|
import android.widget.CheckBox;
|
|
|
import android.widget.CompoundButton;
|
|
import android.widget.CompoundButton;
|
|
|
import android.widget.EditText;
|
|
import android.widget.EditText;
|
|
|
import android.widget.ImageView;
|
|
import android.widget.ImageView;
|
|
|
import android.widget.LinearLayout;
|
|
import android.widget.LinearLayout;
|
|
|
import android.widget.PopupWindow;
|
|
import android.widget.PopupWindow;
|
|
|
-import android.widget.RelativeLayout;
|
|
|
|
|
import android.widget.TextView;
|
|
import android.widget.TextView;
|
|
|
import android.widget.VideoView;
|
|
import android.widget.VideoView;
|
|
|
|
|
|
|
@@ -48,7 +43,6 @@ import com.bumptech.glide.RequestBuilder;
|
|
|
import com.bumptech.glide.request.RequestOptions;
|
|
import com.bumptech.glide.request.RequestOptions;
|
|
|
import com.google.gson.Gson;
|
|
import com.google.gson.Gson;
|
|
|
import com.kfzs.duanduan.fragment.FgtPersonalCenter;
|
|
import com.kfzs.duanduan.fragment.FgtPersonalCenter;
|
|
|
-import com.kfzs.duanduan.fragment.FgtSmallSheep;
|
|
|
|
|
import com.sheep.gamegroup.dateview.DatePickerDialog;
|
|
import com.sheep.gamegroup.dateview.DatePickerDialog;
|
|
|
import com.sheep.gamegroup.dateview.DateUtil;
|
|
import com.sheep.gamegroup.dateview.DateUtil;
|
|
|
import com.sheep.gamegroup.model.entity.Advertising;
|
|
import com.sheep.gamegroup.model.entity.Advertising;
|
|
@@ -58,8 +52,6 @@ import com.sheep.gamegroup.model.entity.DialogConfig;
|
|
|
import com.sheep.gamegroup.model.entity.GameAccountEntity;
|
|
import com.sheep.gamegroup.model.entity.GameAccountEntity;
|
|
|
import com.sheep.gamegroup.model.entity.PayEntity;
|
|
import com.sheep.gamegroup.model.entity.PayEntity;
|
|
|
import com.sheep.gamegroup.model.entity.RobTask;
|
|
import com.sheep.gamegroup.model.entity.RobTask;
|
|
|
-import com.sheep.gamegroup.model.entity.TaskEty;
|
|
|
|
|
-import com.sheep.gamegroup.model.entity.TaskReleaseEty;
|
|
|
|
|
import com.sheep.gamegroup.model.util.SheepSubscriber;
|
|
import com.sheep.gamegroup.model.util.SheepSubscriber;
|
|
|
import com.sheep.gamegroup.util.glide.RoundedCornersTransformation;
|
|
import com.sheep.gamegroup.util.glide.RoundedCornersTransformation;
|
|
|
import com.sheep.gamegroup.view.activity.PersonalInfoAct;
|
|
import com.sheep.gamegroup.view.activity.PersonalInfoAct;
|
|
@@ -78,7 +70,6 @@ import com.sheep.jiuyan.samllsheep.utils.ClassFileHelper;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
|
|
|
|
|
import org.afinal.simplecache.ACache;
|
|
import org.afinal.simplecache.ACache;
|
|
|
-import org.greenrobot.eventbus.EventBus;
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
import java.io.File;
|
|
|
import java.io.FileNotFoundException;
|
|
import java.io.FileNotFoundException;
|
|
@@ -88,7 +79,6 @@ import java.util.List;
|
|
|
import java.util.Locale;
|
|
import java.util.Locale;
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
-import io.reactivex.annotations.Nullable;
|
|
|
|
|
import rx.android.schedulers.AndroidSchedulers;
|
|
import rx.android.schedulers.AndroidSchedulers;
|
|
|
import rx.functions.Action1;
|
|
import rx.functions.Action1;
|
|
|
import rx.schedulers.Schedulers;
|
|
import rx.schedulers.Schedulers;
|
|
@@ -131,7 +121,8 @@ public class ViewUtil {
|
|
|
final ImageView iv_qr = view.findViewById(R.id.iv_qr);
|
|
final ImageView iv_qr = view.findViewById(R.id.iv_qr);
|
|
|
View save_pic = view.findViewById(R.id.save_pic);
|
|
View save_pic = view.findViewById(R.id.save_pic);
|
|
|
ImageView iv_qr_small = view.findViewById(R.id.iv_qr_small);
|
|
ImageView iv_qr_small = view.findViewById(R.id.iv_qr_small);
|
|
|
- GlideImageLoader.downloadAndSetImage(iv_qr, AppUtil.getQRLink(link, 800), 800);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ GlideImageLoader.saveAndSetRqImage(iv_qr, AppUtil.getQRLink(link, 800), 800);
|
|
|
Glide.with(activity)
|
|
Glide.with(activity)
|
|
|
.load(R.drawable.icon)
|
|
.load(R.drawable.icon)
|
|
|
.apply(new RequestOptions().override(G.WIDTH / 8))
|
|
.apply(new RequestOptions().override(G.WIDTH / 8))
|
|
@@ -474,7 +465,7 @@ public class ViewUtil {
|
|
|
if (!TextUtils.isEmpty(link))
|
|
if (!TextUtils.isEmpty(link))
|
|
|
tv_link.setText(link);
|
|
tv_link.setText(link);
|
|
|
|
|
|
|
|
- GlideImageLoader.downloadAndSetImage(iv_qr, AppUtil.getQRLink(link, 800), 800);
|
|
|
|
|
|
|
+ GlideImageLoader.saveAndSetRqImage(iv_qr, AppUtil.getQRLink(link, 800), 800);
|
|
|
dialog_close.setOnClickListener(new View.OnClickListener() {
|
|
dialog_close.setOnClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
public void onClick(View v) {
|