diff options
Diffstat (limited to 'app/src/main/kotlin')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/AboutActivity.kt | 17 | ||||
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/SettingsActivity.kt | 16 |
2 files changed, 33 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/AboutActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/AboutActivity.kt new file mode 100644 index 00000000..fe753872 --- /dev/null +++ b/app/src/main/kotlin/com/pitchedapps/frost/AboutActivity.kt @@ -0,0 +1,17 @@ +//package com.pitchedapps.frost +// +//import android.os.Bundle +//import android.support.v7.app.AppCompatActivity +//import com.mikepenz.aboutlibraries.Libs +// +// +// +///** +// * Created by Allan Wang on 2017-06-26. +// */ +//class AboutActivity : AppCompatActivity() { +// override fun onCreate(savedInstanceState: Bundle?) { +// super.onCreate(savedInstanceState) +// val libs = Libs.getInstance(this, R.string::class.java.fields) +// } +//}
\ No newline at end of file diff --git a/app/src/main/kotlin/com/pitchedapps/frost/SettingsActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/SettingsActivity.kt index cf20aa0f..3900849b 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/SettingsActivity.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/SettingsActivity.kt @@ -12,6 +12,8 @@ import ca.allanwang.kau.kpref.items.KPrefColorPicker import ca.allanwang.kau.kpref.items.KPrefItemBase import ca.allanwang.kau.utils.* import ca.allanwang.kau.views.RippleCanvas +import com.mikepenz.aboutlibraries.Libs +import com.mikepenz.aboutlibraries.LibsBuilder import com.mikepenz.community_material_typeface_library.CommunityMaterial import com.mikepenz.google_material_typeface_library.GoogleMaterial import com.pitchedapps.frost.facebook.FeedSort @@ -47,6 +49,20 @@ class SettingsActivity : KPrefActivity() { descRes = R.string.notifications_desc iicon = GoogleMaterial.Icon.gmd_notifications } + + plainText(R.string.about_frost) { + onClick = { + _, _, _ -> + LibsBuilder() + //provide a style (optional) (LIGHT, DARK, LIGHT_DARK_TOOLBAR) + .withActivityStyle(Libs.ActivityStyle.LIGHT_DARK_TOOLBAR) + //start the activity + .start(this@SettingsActivity) + true + } + } + + if (BuildConfig.DEBUG) { checkbox(R.string.custom_pro, { Prefs.debugPro }, { Prefs.debugPro = it }) } |