mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-14 10:11:58 +00:00
fix crash on android 4
This commit is contained in:
parent
8e18a0e155
commit
066b26e3c0
1 changed files with 4 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ package com.habitrpg.android.habitica.ui.views.yesterdailies;
|
|||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.Context;
|
||||
import android.os.Build;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
|
|
@ -70,7 +71,9 @@ public class YesterdailyDialog extends AlertDialog {
|
|||
private void createTaskViews(LayoutInflater inflater) {
|
||||
for (Task task : tasks) {
|
||||
View taskView = createNewTaskView(inflater);
|
||||
taskView.setClipToOutline(true);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
taskView.setClipToOutline(true);
|
||||
}
|
||||
configureTaskView(taskView, task);
|
||||
taskView.setOnClickListener(v -> {
|
||||
task.completed = !task.completed;
|
||||
|
|
|
|||
Loading…
Reference in a new issue