diff --git a/app/src/main/java/com/jens/automation2/ActivityPermissions.java b/app/src/main/java/com/jens/automation2/ActivityPermissions.java
index 113b51f6..00f0b2c9 100644
--- a/app/src/main/java/com/jens/automation2/ActivityPermissions.java
+++ b/app/src/main/java/com/jens/automation2/ActivityPermissions.java
@@ -7,6 +7,7 @@ import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
+import android.content.res.Resources;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
@@ -189,14 +190,19 @@ public class ActivityPermissions extends Activity
}
else
{
- explanation.append(
+ explanation.append("
");
- "
" +
- "" +
- getResources().getString(getResources().getIdentifier(s, "string", getPackageName()))
- + ""
+ try
+ {
+ explanation.append(getResources().getString(getResources().getIdentifier(s, "string", getPackageName())));
+ }
+ catch(Resources.NotFoundException e)
+ {
+ Miscellaneous.logEvent("w", "ActivityPermissions", "Could not find translation for " + s, 4);
+ explanation.append(s);
+ }
- + "
");
+ explanation.append("
");
for (String reason : getReasonForPermission(s))
explanation.append(reason + "
");