aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-12-31 20:43:21 -0800
committerAllan Wang <me@allanwang.ca>2019-12-31 20:43:21 -0800
commit96272af0dea4db509e31de2eb273647dc52acb43 (patch)
treed37697857ce36c5ab08e38764375c0b315cf2e90 /app/src/main/kotlin/com
parent685220f5f95dfed7b413c080965a82493c56e6ad (diff)
downloadfrost-2.4.2.tar.gz
frost-2.4.2.tar.bz2
frost-2.4.2.zip
Update fab color and fix create post idv2.4.2
Diffstat (limited to 'app/src/main/kotlin/com')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt4
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/injectors/JsActions.kt2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
index 0111967f..0fc60c10 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
@@ -350,12 +350,12 @@ abstract class BaseMainActivity : BaseActivity(), MainActivityContract,
if (shouldShow) {
if (fab.isShown) {
fab.fadeScaleTransition {
- setIcon(iicon, Prefs.iconColor)
+ setIcon(iicon, color = Prefs.iconColor)
}
return
}
}
- fab.setIcon(iicon, Prefs.iconColor)
+ fab.setIcon(iicon, color = Prefs.iconColor)
fab.showIf(shouldShow)
}
}
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/injectors/JsActions.kt b/app/src/main/kotlin/com/pitchedapps/frost/injectors/JsActions.kt
index 44fd01da..175837ca 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/injectors/JsActions.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/injectors/JsActions.kt
@@ -33,7 +33,7 @@ enum class JsActions(body: String) : InjectorContract {
BASE_HREF("""document.write("<base href='$FB_URL_BASE'/>");"""),
FETCH_BODY("""setTimeout(function(){var e=document.querySelector("main");e||(e=document.querySelector("body")),Frost.handleHtml(e.outerHTML)},1e2);"""),
RETURN_BODY("return(document.getElementsByTagName('html')[0].innerHTML);"),
- CREATE_POST(clickBySelector("[role=textbox][onclick]")),
+ CREATE_POST(clickBySelector("#MComposer [onclick]")),
// CREATE_MSG(clickBySelector("a[rel=dialog]")),
/**
* Used as a pseudoinjector for maybe functions