aboutsummaryrefslogtreecommitdiff
path: root/library/src/main/kotlin
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-21 23:13:30 -0700
committerAllan Wang <me@allanwang.ca>2017-06-21 23:13:30 -0700
commitad9bf4849b3274a26dfa8e6032375e5cd982f064 (patch)
treed8c56d0c1b996080bef5d7396c9bae348f3ca79f /library/src/main/kotlin
parent9fe5ba444e6622fa96216873e59af1cad7ec081e (diff)
downloadkau-ad9bf4849b3274a26dfa8e6032375e5cd982f064.tar.gz
kau-ad9bf4849b3274a26dfa8e6032375e5cd982f064.tar.bz2
kau-ad9bf4849b3274a26dfa8e6032375e5cd982f064.zip
Move changelog components back to kau
Diffstat (limited to 'library/src/main/kotlin')
-rw-r--r--library/src/main/kotlin/ca/allanwang/kau/changelog/Changelog.kt5
-rw-r--r--library/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt5
2 files changed, 6 insertions, 4 deletions
diff --git a/library/src/main/kotlin/ca/allanwang/kau/changelog/Changelog.kt b/library/src/main/kotlin/ca/allanwang/kau/changelog/Changelog.kt
index ae4c8f9..bca9b12 100644
--- a/library/src/main/kotlin/ca/allanwang/kau/changelog/Changelog.kt
+++ b/library/src/main/kotlin/ca/allanwang/kau/changelog/Changelog.kt
@@ -1,4 +1,4 @@
-package com.pitchedapps.frost.utils
+package ca.allanwang.kau.changelog
import android.content.Context
import android.content.res.XmlResourceParser
@@ -15,6 +15,9 @@ import org.xmlpull.v1.XmlPullParser
/**
* Created by Allan Wang on 2017-05-28.
+ *
+ * Internals of the changelog dialog
+ * Contains an adapter for each item, as well as the tags to parse
*/
internal class ChangelogAdapter(val items: List<Pair<String, ChangelogType>>) : RecyclerView.Adapter<ChangelogAdapter.ChangelogVH>() {
diff --git a/library/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt b/library/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt
index 9508173..5d10b3e 100644
--- a/library/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt
+++ b/library/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt
@@ -3,7 +3,6 @@ package ca.allanwang.kau.utils
import android.app.Activity
import android.content.Context
import android.content.Intent
-import android.graphics.Color
import android.graphics.drawable.Drawable
import android.net.ConnectivityManager
import android.os.Bundle
@@ -15,8 +14,8 @@ import android.util.TypedValue
import android.widget.Toast
import ca.allanwang.kau.R
import com.afollestad.materialdialogs.MaterialDialog
-import com.pitchedapps.frost.utils.ChangelogAdapter
-import com.pitchedapps.frost.utils.parse
+import ca.allanwang.kau.changelog.ChangelogAdapter
+import ca.allanwang.kau.changelog.parse
import java.util.*
/**