aboutsummaryrefslogtreecommitdiff
path: root/app
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
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')
-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
-rw-r--r--app/src/main/play/en-US/whatsnew3
-rw-r--r--app/src/main/res/values/styles.xml2
-rw-r--r--app/src/main/res/xml/frost_changelog.xml1
5 files changed, 7 insertions, 5 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
diff --git a/app/src/main/play/en-US/whatsnew b/app/src/main/play/en-US/whatsnew
index 6dab286d..747dbf83 100644
--- a/app/src/main/play/en-US/whatsnew
+++ b/app/src/main/play/en-US/whatsnew
@@ -6,4 +6,5 @@ v2.4.2
* Update theme
* Open formatted urls from context menu
* Allow copying text with emojis
-* Theme webview js dialogs \ No newline at end of file
+* Theme webview js dialogs
+* Fix create post FAB \ No newline at end of file
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index f4fa9e6c..4775a892 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -113,7 +113,7 @@
<item name="layout_behavior">@string/appbar_scrolling_view_behavior</item>
</style>
- <style name="Main.Fab" parent="Widget.Design.NavigationView">
+ <style name="Main.Fab" parent="">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">end|bottom</item>
diff --git a/app/src/main/res/xml/frost_changelog.xml b/app/src/main/res/xml/frost_changelog.xml
index efd09204..c1360b73 100644
--- a/app/src/main/res/xml/frost_changelog.xml
+++ b/app/src/main/res/xml/frost_changelog.xml
@@ -14,6 +14,7 @@
<item text="Open formatted urls from context menu" />
<item text="Allow copying text with emojis" />
<item text="Theme webview js dialogs" />
+ <item text="Fix create post FAB" />
<item text="" />
<version title="v2.4.1" />