From 63a4ee8e73ed25299fa87241bb87ff6faafd518d Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 15 Mar 2017 20:08:59 +0100 Subject: [PATCH] remove the beVisibleIf extension --- .../simplemobiletools/gallery/activities/SettingsActivity.kt | 2 +- .../kotlin/com/simplemobiletools/gallery/extensions/view.kt | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 app/src/main/kotlin/com/simplemobiletools/gallery/extensions/view.kt diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt index 456e26a06..0c687f7d4 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt @@ -4,10 +4,10 @@ import android.content.Intent import android.content.res.Resources import android.os.Bundle import com.simplemobiletools.commons.dialogs.RadioGroupDialog +import com.simplemobiletools.commons.extensions.beVisibleIf import com.simplemobiletools.commons.extensions.updateTextColors import com.simplemobiletools.commons.models.RadioItem import com.simplemobiletools.gallery.R -import com.simplemobiletools.gallery.extensions.beVisibleIf import com.simplemobiletools.gallery.extensions.config import com.simplemobiletools.gallery.helpers.IMAGES import com.simplemobiletools.gallery.helpers.IMAGES_AND_VIDEOS diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/view.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/view.kt deleted file mode 100644 index af208183b..000000000 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/view.kt +++ /dev/null @@ -1,5 +0,0 @@ -package com.simplemobiletools.gallery.extensions - -import android.view.View - -fun View.beVisibleIf(beVisible: Boolean) = if (beVisible) visibility = View.VISIBLE else visibility = View.GONE