1
0
mirror of https://github.com/AllanWang/Frost-for-Facebook.git synced 2024-11-09 20:42:34 +01:00

Update fab color and fix create post id

This commit is contained in:
Allan Wang 2019-12-31 20:43:21 -08:00
parent 685220f5f9
commit 96272af0de
No known key found for this signature in database
GPG Key ID: C93E3F9C679D7A56
6 changed files with 8 additions and 5 deletions

View File

@ -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)
}
}

View File

@ -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

View File

@ -6,4 +6,5 @@ v2.4.2
* Update theme
* Open formatted urls from context menu
* Allow copying text with emojis
* Theme webview js dialogs
* Theme webview js dialogs
* Fix create post FAB

View File

@ -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>

View File

@ -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" />

View File

@ -8,6 +8,7 @@
* Open formatted urls from context menu
* Allow copying text with emojis
* Theme webview js dialogs
* Fix create post FAB
## v2.4.1
* Add better support for mobile url conversions