version:1.2.9

fix:修复没有微信时打开报错
update:新增单独联系人页面
This commit is contained in:
2024-10-14 09:42:27 +08:00
parent 196b93424a
commit b5b12c3e83
22 changed files with 744 additions and 38 deletions

View File

@@ -366,4 +366,22 @@ public class Utils {
String meid = telephonyManager.getDeviceId();
return meid;
}
public static String getCacheDir(Context context) {
String cachePath;
if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())
|| !Environment.isExternalStorageRemovable()) {
if (context.getExternalCacheDir() != null) {
cachePath = context.getExternalCacheDir().getPath();
} else if (context.getExternalFilesDir("cache") != null) {
cachePath = context.getExternalFilesDir("cache").getPath();
} else {
cachePath = context.getCacheDir().getPath();
}
} else {
cachePath = context.getCacheDir().getPath();
}
return cachePath;
}
}