|
@@ -27,6 +27,7 @@ import com.sheep.gamegroup.util.FastJsonUtils;
|
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
|
import com.sheep.gamegroup.util.LogUtil;
|
|
import com.sheep.gamegroup.util.LogUtil;
|
|
|
import com.sheep.gamegroup.util.MyDbManager;
|
|
import com.sheep.gamegroup.util.MyDbManager;
|
|
|
|
|
+import com.sheep.gamegroup.util.SysAppUtil;
|
|
|
import com.sheep.gamegroup.util.ViewUtil;
|
|
import com.sheep.gamegroup.util.ViewUtil;
|
|
|
import com.sheep.jiuyan.samllsheep.BuildConfig;
|
|
import com.sheep.jiuyan.samllsheep.BuildConfig;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
@@ -63,6 +64,8 @@ public class FgtPersonalCenter extends BaseCompatFragment {
|
|
|
View proxy_service_layout_line;
|
|
View proxy_service_layout_line;
|
|
|
@BindView(R.id.version_item_tv)
|
|
@BindView(R.id.version_item_tv)
|
|
|
TextView version_item_tv;
|
|
TextView version_item_tv;
|
|
|
|
|
+ @BindView(R.id.clear_item_tv)
|
|
|
|
|
+ TextView clear_item_tv;
|
|
|
Unbinder unbinder;
|
|
Unbinder unbinder;
|
|
|
|
|
|
|
|
private UserEntity userEntitys;
|
|
private UserEntity userEntitys;
|
|
@@ -71,7 +74,6 @@ public class FgtPersonalCenter extends BaseCompatFragment {
|
|
|
@Override
|
|
@Override
|
|
|
protected void initView(Bundle savedInstanceState) {
|
|
protected void initView(Bundle savedInstanceState) {
|
|
|
setContentView(R.layout.fgt_personalcenter_layout);
|
|
setContentView(R.layout.fgt_personalcenter_layout);
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void initData() {
|
|
private void initData() {
|
|
@@ -130,6 +132,9 @@ public class FgtPersonalCenter extends BaseCompatFragment {
|
|
|
});
|
|
});
|
|
|
getVersionInfo();
|
|
getVersionInfo();
|
|
|
getShardData();
|
|
getShardData();
|
|
|
|
|
+
|
|
|
|
|
+ String size = SysAppUtil.getAppCacheSize();
|
|
|
|
|
+ clear_item_tv.setText(TextUtils.isEmpty(size) ? "无需清理":size);
|
|
|
}
|
|
}
|
|
|
private VersionInfo versionInfo;
|
|
private VersionInfo versionInfo;
|
|
|
private void loadVersionInfo() {
|
|
private void loadVersionInfo() {
|
|
@@ -201,6 +206,7 @@ public class FgtPersonalCenter extends BaseCompatFragment {
|
|
|
// TODO: inflate a fragment view
|
|
// TODO: inflate a fragment view
|
|
|
View rootView = super.onCreateView(inflater, container, savedInstanceState);
|
|
View rootView = super.onCreateView(inflater, container, savedInstanceState);
|
|
|
unbinder = ButterKnife.bind(this, rootView);
|
|
unbinder = ButterKnife.bind(this, rootView);
|
|
|
|
|
+
|
|
|
return rootView;
|
|
return rootView;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -264,7 +270,6 @@ public class FgtPersonalCenter extends BaseCompatFragment {
|
|
|
case R.id.clear_layout://清除缓存
|
|
case R.id.clear_layout://清除缓存
|
|
|
Glide.get(getActivity()).clearDiskCache();//清理图片
|
|
Glide.get(getActivity()).clearDiskCache();//清理图片
|
|
|
ClassFileHelper.getInstance().clearDir();//清理下载文件
|
|
ClassFileHelper.getInstance().clearDir();//清理下载文件
|
|
|
- //清理应用缓存,除sp数据
|
|
|
|
|
break;
|
|
break;
|
|
|
case R.id.change_layout://新功能介绍
|
|
case R.id.change_layout://新功能介绍
|
|
|
Jump2View.getInstance().goVersionChange(getActivity(), ApkUtils.getCurrentPkgVersionName(SheepApp.getInstance()));
|
|
Jump2View.getInstance().goVersionChange(getActivity(), ApkUtils.getCurrentPkgVersionName(SheepApp.getInstance()));
|