From 37a9f9057d7879080b7b982f987bf0b82d0d774c Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Wed, 19 Jul 2017 13:20:03 -0700 Subject: Dev - minor fixes (#75) * Add lint * Add new libs * Update libs and add friends tab * Aggressively hide nonrecent posts * Update dependencies * Add php to most recents * Add full size image downloader * Fix css cleaner * Fix notification and circle * Bring back regex --- .../main/assets/css/components/round_icons.compact.css | 2 +- app/src/main/assets/css/components/round_icons.scss | 3 ++- .../kotlin/com/pitchedapps/frost/injectors/JsInjector.kt | 2 +- app/src/main/res/xml/frost_changelog.xml | 16 ++++++++++++---- docs/Changelog.md | 10 +++++++--- gradle.properties | 2 +- 6 files changed, 24 insertions(+), 11 deletions(-) diff --git a/app/src/main/assets/css/components/round_icons.compact.css b/app/src/main/assets/css/components/round_icons.compact.css index 76ff52cc..98c05584 100644 --- a/app/src/main/assets/css/components/round_icons.compact.css +++ b/app/src/main/assets/css/components/round_icons.compact.css @@ -1 +1 @@ -#threadlist_rows i.img:not(.profpic), i.img.profpic:not(._1_0m), ._42b6._42b6._42b6, ._5i9c.img, img._2cu2, i.img.l, [id*=threadlist] i.img:not(._1_0m) { border-radius: 50% !important; } +#threadlist_rows, [role*=presentation] img._1e_c, i.img.profpic:not(._1_0m), ._42b6._42b6._42b6, ._5i9c.img, img._2cu2, i.img.l, [id*=threadlist] i.img:not(._1_0m) { border-radius: 50% !important; } diff --git a/app/src/main/assets/css/components/round_icons.scss b/app/src/main/assets/css/components/round_icons.scss index ad89b112..c00fe1bf 100644 --- a/app/src/main/assets/css/components/round_icons.scss +++ b/app/src/main/assets/css/components/round_icons.scss @@ -1,3 +1,4 @@ -#threadlist_rows i.img:not(.profpic), i.img.profpic:not(._1_0m), ._42b6._42b6._42b6, ._5i9c.img, img._2cu2, i.img.l, [id*=threadlist] i.img:not(._1_0m) { +#threadlist_rows, [role*=presentation] img._1e_c, +i.img.profpic:not(._1_0m), ._42b6._42b6._42b6, ._5i9c.img, img._2cu2, i.img.l, [id*=threadlist] i.img:not(._1_0m) { border-radius: 50% !important; } diff --git a/app/src/main/kotlin/com/pitchedapps/frost/injectors/JsInjector.kt b/app/src/main/kotlin/com/pitchedapps/frost/injectors/JsInjector.kt index 1b7dad1c..7e9fdcad 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/injectors/JsInjector.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/injectors/JsInjector.kt @@ -25,7 +25,7 @@ class JsBuilder { override fun toString(): String { val builder = StringBuilder().append("!function(){") if (css.isNotBlank()) { - val cssMin = css.replace(Regex("[\\r\\n\\t\\f\\v]\\s*"), "") + val cssMin = css.replace(Regex("\\s*\n\\s*"), "") builder.append("var a=document.createElement('style');a.innerHTML='$cssMin';document.head.appendChild(a);") } if (js.isNotBlank()) diff --git a/app/src/main/res/xml/frost_changelog.xml b/app/src/main/res/xml/frost_changelog.xml index f608f70a..3c60ef5c 100644 --- a/app/src/main/res/xml/frost_changelog.xml +++ b/app/src/main/res/xml/frost_changelog.xml @@ -9,10 +9,14 @@ --> - - - - + + + + + + + + @@ -21,6 +25,10 @@ + + + + diff --git a/docs/Changelog.md b/docs/Changelog.md index ae525797..2fe02e9a 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -1,9 +1,9 @@ # Changelog ## Beta Updates -* Add friend request tab in nav bar -* Aggressively filter nonrecent posts in recents mode -* Add download option for full sized images +* Fix regex bug for some devices +* Fix notification text +* Update round icons ## v1.4 * Update IAB helper @@ -11,6 +11,10 @@ * Start filtering out unnecessary loads * Fix notification duplicates * Fix long pressing album images +* Add friend request tab in nav bar +* Aggressively filter nonrecent posts in recents mode +* Add download option for full sized images +* Fix rounded icons ## v1.3 * Create toggle for notifications only from primary account diff --git a/gradle.properties b/gradle.properties index 96a0843d..58f21b26 100644 --- a/gradle.properties +++ b/gradle.properties @@ -17,7 +17,7 @@ MIN_SDK=21 TARGET_SDK=26 BUILD_TOOLS=26.0.0 -KAU=v2.1 +KAU=bb91aea KOTLIN=1.1.3-2 CRASHLYTICS=2.6.8 DBFLOW=4.0.5 -- cgit v1.2.3