(int resId, Throwable e)
| 38 | } |
| 39 | |
| 40 | public static String getError(int resId, Throwable e) { |
| 41 | if (TextUtils.isEmpty(e.getMessage())) return ResUtil.getString(resId); |
| 42 | return ResUtil.getString(resId) + "\n" + e.getMessage(); |
| 43 | } |
| 44 | |
| 45 | public static void show(Notification notification) { |
| 46 | if (ContextCompat.checkSelfPermission(App.get(), Manifest.permission.POST_NOTIFICATIONS) != PackageManager.PERMISSION_GRANTED) return; |
no test coverage detected