fix: contentProvider部分机型闪退

This commit is contained in:
guotao
2022-07-07 17:54:05 +08:00
committed by juntao
parent 9f7514079a
commit 3241ff9935
3 changed files with 43 additions and 17 deletions

View File

@ -161,7 +161,8 @@ public class DataUtils {
values.put(GhContentProvider.KEY_IS_ADULT, false);
}
HaloApp.getInstance().getContentResolver().insert(Uri.parse("content://com.gh.gamecenter.provider/certification"), values);
new GhContentProvider().localInsert( HaloApp.getInstance().getApplication(),values);
// HaloApp.getInstance().getContentResolver().insert(Uri.parse("content://com.gh.gamecenter.provider/certification"), values);
}
});
}