产品优化汇总
This commit is contained in:
@ -7,22 +7,30 @@ import android.support.v7.widget.LinearLayoutManager;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.text.Html;
|
||||
import android.view.View;
|
||||
import android.widget.*;
|
||||
import butterknife.BindView;
|
||||
import butterknife.OnClick;
|
||||
import android.widget.CheckBox;
|
||||
import android.widget.CompoundButton;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.ProgressBar;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.gh.base.BaseActivity;
|
||||
import com.gh.common.util.DialogUtils;
|
||||
import com.gh.common.util.StringUtils;
|
||||
import com.gh.common.util.Utils;
|
||||
import com.gh.common.view.VerticalItemDecoration;
|
||||
import com.gh.gamecenter.adapter.CleanApkAdapter;
|
||||
import com.gh.gamecenter.entity.InstallGameEntity;
|
||||
import com.gh.gamecenter.eventbus.EBSkip;
|
||||
import de.greenrobot.event.EventBus;
|
||||
|
||||
import java.io.File;
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.List;
|
||||
|
||||
import butterknife.BindView;
|
||||
import butterknife.OnClick;
|
||||
import de.greenrobot.event.EventBus;
|
||||
|
||||
/**
|
||||
* Created by khy on 2017/1/24.
|
||||
*/
|
||||
@ -122,8 +130,8 @@ public class CleanApkActivity extends BaseActivity implements CleanApkAdapter.On
|
||||
for (int i = 0; i < apkList.size(); i++) {
|
||||
if (selectPosition.get(i) && apkList.get(i).getInstallStatus() == 1) {
|
||||
DialogUtils.showWarningDialog(CleanApkActivity.this, "删除安装包"
|
||||
, Html.fromHtml("你选择的安装包中包含" + "<font color=\"#ff0000\">未安装</font>"
|
||||
+ "的应用,确定删除吗?"), "取消 ", "确定"
|
||||
, Html.fromHtml("你选择的安装包中包含 <font color=\"#ff0000\">未安装</font> 的应用,确定删除吗?")
|
||||
, "取消 ", "确定"
|
||||
, new DialogUtils.ConfiremListener() {
|
||||
@Override
|
||||
public void onConfirem() {
|
||||
@ -150,7 +158,7 @@ public class CleanApkActivity extends BaseActivity implements CleanApkAdapter.On
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
EventBus.getDefault().post(new EBSkip("GameFragment", 0));
|
||||
EventBus.getDefault().post(new EBSkip(MainActivity.EB_SKIP_GAMEFRAGMENT, 0));
|
||||
}
|
||||
}.start();
|
||||
break;
|
||||
@ -200,8 +208,8 @@ public class CleanApkActivity extends BaseActivity implements CleanApkAdapter.On
|
||||
DecimalFormat df = new DecimalFormat("0.00");
|
||||
String sizeName = df.format(size) + "MB";
|
||||
|
||||
mApkCount.setText(Html.fromHtml("找到" + apkList.size() + "个安装包,占用"
|
||||
+ "<font color=\"#ff4147\">" + sizeName + "</font>" + "空间"));
|
||||
mApkCount.setText(Html.fromHtml(StringUtils.buildString("找到" , String.valueOf(apkList.size()) , "个安装包,占用"
|
||||
, "<font color=\"#ff4147\">" , sizeName , "</font>" , "空间")));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user