From 3ece80f3da32b2df54046a20b959d698902157a5 Mon Sep 17 00:00:00 2001 From: "Alinson S. Xavier" Date: Sat, 13 Mar 2021 16:35:27 -0600 Subject: [PATCH] Remove unused class and resource --- .../habits/list/views/ShadowView.kt | 42 ------------------- .../src/main/res/drawable/shadow.xml | 28 ------------- .../src/main/res/values/styles.xml | 7 ---- 3 files changed, 77 deletions(-) delete mode 100644 uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/ShadowView.kt delete mode 100644 uhabits-android/src/main/res/drawable/shadow.xml diff --git a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/ShadowView.kt b/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/ShadowView.kt deleted file mode 100644 index 238a41652..000000000 --- a/uhabits-android/src/main/java/org/isoron/uhabits/activities/habits/list/views/ShadowView.kt +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2016-2021 Álinson Santos Xavier - * - * This file is part of Loop Habit Tracker. - * - * Loop Habit Tracker is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by the - * Free Software Foundation, either version 3 of the License, or (at your - * option) any later version. - * - * Loop Habit Tracker is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - */ - -package org.isoron.uhabits.activities.habits.list.views - -import android.content.Context -import android.view.View -import android.view.View.MeasureSpec.EXACTLY -import org.isoron.uhabits.R -import org.isoron.uhabits.utils.dp -import org.isoron.uhabits.utils.toMeasureSpec - -@Suppress("DEPRECATION") -class ShadowView(context: Context) : View(context) { - init { - alpha = 0.2f - background = resources.getDrawable(R.drawable.shadow) - } - - override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { - super.onMeasure( - widthMeasureSpec, - dp(2.0f).toInt().toMeasureSpec(EXACTLY) - ) - } -} diff --git a/uhabits-android/src/main/res/drawable/shadow.xml b/uhabits-android/src/main/res/drawable/shadow.xml deleted file mode 100644 index cd568b490..000000000 --- a/uhabits-android/src/main/res/drawable/shadow.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/uhabits-android/src/main/res/values/styles.xml b/uhabits-android/src/main/res/values/styles.xml index a8e88245b..1c4627fbc 100644 --- a/uhabits-android/src/main/res/values/styles.xml +++ b/uhabits-android/src/main/res/values/styles.xml @@ -203,13 +203,6 @@ @layout/preference_category_custom - -