|
@@ -20,6 +20,7 @@ import com.sheep.jiuyan.samllsheep.Config;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
|
|
+import com.sheep.jiuyan.samllsheep.utils.SpUtils;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
|
|
import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
|
|
|
|
|
|
|
|
import butterknife.BindView;
|
|
import butterknife.BindView;
|
|
@@ -34,6 +35,8 @@ import static com.sheep.gamegroup.util.UMConfigUtils.Event.USER_CLEAN_SURE;
|
|
|
*/
|
|
*/
|
|
|
public class ActSetting extends BaseActivity {
|
|
public class ActSetting extends BaseActivity {
|
|
|
|
|
|
|
|
|
|
+ @BindView(R.id.pay_pwd_flag)
|
|
|
|
|
+ View payPwdFlag;
|
|
|
private Activity activity;
|
|
private Activity activity;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -51,6 +54,11 @@ public class ActSetting extends BaseActivity {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public void onResume() {
|
|
|
|
|
+ super.onResume();
|
|
|
|
|
+ payPwdFlag.setVisibility(DataUtil.getInstance().getUserEntity().hasPayPwd() ? View.VISIBLE : View.GONE);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public void initListener() {
|
|
public void initListener() {
|
|
|
|
|
|
|
@@ -80,7 +88,7 @@ public class ActSetting extends BaseActivity {
|
|
|
case R.id.copy_text_layout://粘贴板助手
|
|
case R.id.copy_text_layout://粘贴板助手
|
|
|
boolean opened = DataUtil.toggleAsBoolean(Config.KEY_ENABLE_CHECK_COPY_TEXT, Config.dvbEnableCheckCopyText());
|
|
boolean opened = DataUtil.toggleAsBoolean(Config.KEY_ENABLE_CHECK_COPY_TEXT, Config.dvbEnableCheckCopyText());
|
|
|
initCopyState();
|
|
initCopyState();
|
|
|
- if(opened){
|
|
|
|
|
|
|
+ if (opened) {
|
|
|
ViewUtil.showMsgDialog(activity, getString(R.string.copy_assistant_tip));
|
|
ViewUtil.showMsgDialog(activity, getString(R.string.copy_assistant_tip));
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
@@ -112,8 +120,10 @@ public class ActSetting extends BaseActivity {
|
|
|
String size = SysAppUtil.getAppCacheSize();
|
|
String size = SysAppUtil.getAppCacheSize();
|
|
|
clear_item_tv.setText(TextUtils.isEmpty(size) || TextUtils.equals("0K", size) ? "无需清理" : size);
|
|
clear_item_tv.setText(TextUtils.isEmpty(size) || TextUtils.equals("0K", size) ? "无需清理" : size);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@BindView(R.id.copy_text_tv)
|
|
@BindView(R.id.copy_text_tv)
|
|
|
TextView copy_text_tv;
|
|
TextView copy_text_tv;
|
|
|
|
|
+
|
|
|
private void initCopyState() {
|
|
private void initCopyState() {
|
|
|
copy_text_tv.setText(DataUtil.getAsBoolean(Config.KEY_ENABLE_CHECK_COPY_TEXT, Config.dvbEnableCheckCopyText()) ? R.string.opened : R.string.closed);
|
|
copy_text_tv.setText(DataUtil.getAsBoolean(Config.KEY_ENABLE_CHECK_COPY_TEXT, Config.dvbEnableCheckCopyText()) ? R.string.opened : R.string.closed);
|
|
|
}
|
|
}
|