Skip to content

Commit

Permalink
添加对XSharedPreferences的可读性判断
Browse files Browse the repository at this point in the history
  • Loading branch information
kooritea authored May 10, 2024
1 parent 13f13a7 commit 44b5374
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public void run() {
super.run();
try{
XSharedPreferences pref = new XSharedPreferences("com.kooritea.fcmfix", "config");
if(pref.getBoolean("init", false)){
if(pref.getFile().canRead() && pref.getBoolean("init", false)){
allowList = pref.getStringSet("allowList", null);
if(allowList != null && "android".equals(context.getPackageName())){
printLog( "[XSharedPreferences Mode]onUpdateConfig allowList size: " + allowList.size());
Expand Down

0 comments on commit 44b5374

Please sign in to comment.