add new elephant friends (#757)

* add new elephant friends

* add art license

* fix typo
This commit is contained in:
Konrad Pozniak 2018-08-15 20:51:35 +02:00 committed by GitHub
commit 8930d277e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 207 additions and 21 deletions

View file

@ -42,11 +42,8 @@ public class FooterViewHolder extends RecyclerView.ViewHolder {
progressBar = itemView.findViewById(R.id.footer_progress_bar);
endMessage = itemView.findViewById(R.id.footer_end_message);
Drawable top = AppCompatResources.getDrawable(itemView.getContext(),
R.drawable.elephant_friend);
if (top != null) {
top.setBounds(0, 0, top.getIntrinsicWidth() / 2, top.getIntrinsicHeight() / 2);
}
endMessage.setCompoundDrawables(null, top, null, null);
R.drawable.elephant_friend_empty);
endMessage.setCompoundDrawablesWithIntrinsicBounds(null, top, null, null);
}
public void setState(State state) {

View file

@ -216,11 +216,8 @@ public class NotificationsFragment extends SFragment implements
private void setupNothingView() {
Drawable top = AppCompatResources.getDrawable(Objects.requireNonNull(getContext()),
R.drawable.elephant_friend);
if (top != null) {
top.setBounds(0, 0, top.getIntrinsicWidth() / 2, top.getIntrinsicHeight() / 2);
}
nothingMessageView.setCompoundDrawables(null, top, null, null);
R.drawable.elephant_friend_empty);
nothingMessageView.setCompoundDrawablesWithIntrinsicBounds(null, top, null, null);
nothingMessageView.setVisibility(View.GONE);
}

View file

@ -423,11 +423,8 @@ public class TimelineFragment extends SFragment implements
}
private void setupNothingView() {
Drawable top = AppCompatResources.getDrawable(requireContext(), R.drawable.elephant_friend);
if (top != null) {
top.setBounds(0, 0, top.getIntrinsicWidth() / 2, top.getIntrinsicHeight() / 2);
}
nothingMessageView.setCompoundDrawables(null, top, null, null);
Drawable top = AppCompatResources.getDrawable(requireContext(), R.drawable.elephant_friend_empty);
nothingMessageView.setCompoundDrawablesWithIntrinsicBounds(null, top, null, null);
nothingMessageView.setVisibility(View.GONE);
}