From 601b0492110f17e5f9a1a446897e0b42d4a8cffe Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Thu, 29 Jun 2017 17:10:56 -0700 Subject: Adding about app --- .idea/misc.xml | 2 +- app/src/main/AndroidManifest.xml | 3 ++ .../kotlin/com/pitchedapps/frost/AboutActivity.kt | 44 +++++++++++++--------- .../com/pitchedapps/frost/SettingsActivity.kt | 6 +-- .../kotlin/com/pitchedapps/frost/utils/Utils.kt | 4 +- app/src/main/res/drawable/frost_f_256.xml | 14 +++++++ app/src/main/res/values/strings.xml | 1 + gradle.properties | 2 +- 8 files changed, 50 insertions(+), 26 deletions(-) create mode 100644 app/src/main/res/drawable/frost_f_256.xml diff --git a/.idea/misc.xml b/.idea/misc.xml index 7319f021..085136f8 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -53,7 +53,7 @@ - + diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index c93a39ad..b33da59a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -115,6 +115,9 @@ + >) { + adapter.add(CardIItem { + descRes = R.string.frost_description + }) + } +} \ 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 3900849b..1d3ce5be 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/SettingsActivity.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/SettingsActivity.kt @@ -53,11 +53,7 @@ class SettingsActivity : KPrefActivity() { 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) + startActivity(AboutActivity::class.java, transition = true) true } } diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt index 3fe33475..986f9565 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt @@ -32,7 +32,7 @@ internal const val EXTRA_COOKIES = "extra_cookies" internal const val ARG_URL = "arg_url" fun Context.launchNewTask(clazz: Class, cookieList: ArrayList = arrayListOf(), clearStack: Boolean = false) { - startActivity(clazz, clearStack, { + startActivity(clazz, clearStack, intentBuilder = { putParcelableArrayListExtra(EXTRA_COOKIES, cookieList) }) } @@ -60,7 +60,7 @@ val String.formattedFbUrl: String fun Context.launchWebOverlay(url: String) { val argUrl = url.formattedFbUrl L.i("Launch web overlay: $argUrl") - startActivity(WebOverlayActivity::class.java, false, { + startActivity(WebOverlayActivity::class.java, false, intentBuilder = { putExtra(ARG_URL, argUrl) }) } diff --git a/app/src/main/res/drawable/frost_f_256.xml b/app/src/main/res/drawable/frost_f_256.xml new file mode 100644 index 00000000..fce1b5ca --- /dev/null +++ b/app/src/main/res/drawable/frost_f_256.xml @@ -0,0 +1,14 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6fcb2c54..24d3d93c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2,6 +2,7 @@ pitchedapps@gmail.com com.pitchedapps.frost About Frost for Facebook + Frost is a fully themable, fully functional alternative to the official Facebook app, made from scratch and proudly open sourced. Hello World from section: %1$d Feed diff --git a/gradle.properties b/gradle.properties index 820d3503..e87dbc3d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,7 +19,7 @@ BUILD_TOOLS=26.0.0 VERSION_CODE=5 VERSION_NAME=0.5 -KAU=8179e50208 +KAU=b87fe9838d KOTLIN=1.1.3 MATERIAL_DRAWER=5.9.3 MATERIAL_DRAWER_KT=1.0.4 -- cgit v1.2.3