MCPcopy Create free account
hub / github.com/M66B/FairEmail / setSnackbarLines

Method setSnackbarLines

app/src/main/java/eu/faircode/email/Helper.java:2259–2267  ·  view source on GitHub ↗
(Snackbar snackbar, int lines)

Source from the content-addressed store, hash-verified

2257 }
2258
2259 static void setSnackbarLines(Snackbar snackbar, int lines) {
2260 View sv = snackbar.getView();
2261 if (sv == null)
2262 return;
2263 TextView tv = sv.findViewById(com.google.android.material.R.id.snackbar_text);
2264 if (tv == null)
2265 return;
2266 tv.setMaxLines(lines);
2267 }
2268
2269 static boolean isNight(Context context) {
2270 // https://developer.android.com/guide/topics/ui/look-and-feel/darktheme#configuration_changes

Callers 3

onExceptionMethod · 0.95
onExecutedMethod · 0.95
undoMethod · 0.95

Calls 1

getViewMethod · 0.45

Tested by

no test coverage detected