|
@@ -655,7 +655,8 @@ public class IndexSettingFragment extends BaseFragment implements View.OnClickLi
|
|
|
String emname = dataObject.optString("em_name");
|
|
|
|
|
|
if (!TextUtils.isEmpty(funname) && !TextUtils.isEmpty(mastername)) {
|
|
|
- PdaApplication.removeAllDataCache();
|
|
|
+ // PdaApplication.removeAllDataCache();
|
|
|
+ removeAllCache();
|
|
|
SharedPreUtil.saveString(getActivity(), Constants.FLAG.ACCOUNT_FUNNAME_CACHE, funname);
|
|
|
SharedPreUtil.saveString(getActivity(), Constants.FLAG.ACCOUNT_NAME_CACHE, mastername);
|
|
|
Toast.makeText(getActivity(), "账套切换成功", Toast.LENGTH_SHORT).show();
|
|
@@ -721,4 +722,11 @@ public class IndexSettingFragment extends BaseFragment implements View.OnClickLi
|
|
|
public boolean onFragmentBackPressed() {
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
+ private void removeAllCache() {
|
|
|
+ //原来的权限先予以保留
|
|
|
+ Object powerList = PdaApplication.getDataCacheFromMap(Constants.FLAG.POWER_CALLER_CACHE);
|
|
|
+ PdaApplication.removeAllDataCache();
|
|
|
+ PdaApplication.putDataCache2Map(Constants.FLAG.POWER_CALLER_CACHE,powerList);
|
|
|
+ }
|
|
|
}
|