|
@@ -75,7 +75,9 @@ public class PermissionTipHelper {
|
|
|
for (int i = 0; i < permissions.length; i++) {
|
|
|
String permission = permissions[i];
|
|
|
String tip = createTip(permission);
|
|
|
- stringBuilder.append(tip);
|
|
|
+ if (stringBuilder.indexOf(tip) == -1) {
|
|
|
+ stringBuilder.append(tip);
|
|
|
+ }
|
|
|
}
|
|
|
return stringBuilder.toString();
|
|
|
}
|
|
@@ -86,11 +88,11 @@ public class PermissionTipHelper {
|
|
|
}
|
|
|
|
|
|
if (TextUtils.equals(permission, Manifest.permission.WRITE_EXTERNAL_STORAGE)) {
|
|
|
- return Utils.getApp().getString(R.string.write_storage_permission_tip);
|
|
|
+ return Utils.getApp().getString(R.string.write_or_read_storage_permission_tip);
|
|
|
}
|
|
|
|
|
|
if (TextUtils.equals(permission, Manifest.permission.READ_EXTERNAL_STORAGE)) {
|
|
|
- return Utils.getApp().getString(R.string.read_storage_permission_tip);
|
|
|
+ return Utils.getApp().getString(R.string.write_or_read_storage_permission_tip);
|
|
|
}
|
|
|
|
|
|
if (TextUtils.equals(permission, Manifest.permission.RECORD_AUDIO)) {
|