Commit 9eb20164 authored by cyberta's avatar cyberta

catch resource not found exception in LogItem

parent 7932f484
......@@ -10,6 +10,7 @@ import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.Signature;
import android.content.res.Resources.NotFoundException;
import android.os.Parcel;
import android.os.Parcelable;
......@@ -265,6 +266,11 @@ public class LogItem implements Parcelable {
return str;
}
}
} catch (NotFoundException e) {
String str = "Log resid not found: " + mRessourceId;
if (mArgs != null)
str += join("|", mArgs);
return str;
} catch (UnknownFormatConversionException e) {
if (c != null)
throw new UnknownFormatConversionException(e.getLocalizedMessage() + getString(null));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment