MCPcopy Create free account
hub / github.com/FongMi/TV / getError

Method getError

app/src/main/java/com/fongmi/android/tv/utils/Notify.java:40–43  ·  view source on GitHub ↗
(int resId, Throwable e)

Source from the content-addressed store, hash-verified

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;

Callers 1

loadConfigMethod · 0.95

Calls 2

getStringMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected