} catch (Throwable t) {
Log.e("OneSignal", "checkSelfPermission failed, returning PERMISSION_DENIED");
return PackageManager.PERMISSION_DENIED;
}
}
<BUG>public static int getColor(Context context, int id) {
if (Build.VERSION.SDK_INT > 22)</BUG>
return context.getColor(id);
return context.getResources().getColor(id);
}

} catch (Throwable t) {
Log.e("OneSignal", "checkSelfPermission failed, returning PERMISSION_DENIED");
return PackageManager.PERMISSION_DENIED;
}
}
static int getColor(Context context, int id) {
if (Build.VERSION.SDK_INT > 22)
return context.getColor(id);
return context.getResources().getColor(id);
