mirror of
https://github.com/accelforce/Yuito
synced 2024-12-24 23:01:41 +01:00
fix crash in StatusBaseViewHolder.getVisibilityDescription
This commit is contained in:
parent
40d3eb8759
commit
51cf1a4ec5
@ -742,6 +742,9 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private CharSequence getVisibilityDescription(Context context, Status.Visibility visibility) {
|
private CharSequence getVisibilityDescription(Context context, Status.Visibility visibility) {
|
||||||
|
if(visibility == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
int resource;
|
int resource;
|
||||||
switch (visibility) {
|
switch (visibility) {
|
||||||
case PUBLIC:
|
case PUBLIC:
|
||||||
|
Loading…
Reference in New Issue
Block a user