From 66792759c945dbf437bd1c48cdaf3a7ade5d43ae Mon Sep 17 00:00:00 2001 From: Nikos Linakis Date: Fri, 25 Jan 2019 06:53:32 +0200 Subject: [PATCH] this fixes TheFinestArtist/FinestWebView-Android#157 --- .../thefinestartist/finestwebview/FinestWebViewActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/src/main/java/com/thefinestartist/finestwebview/FinestWebViewActivity.java b/library/src/main/java/com/thefinestartist/finestwebview/FinestWebViewActivity.java index f1a6d0e..1b75a74 100644 --- a/library/src/main/java/com/thefinestartist/finestwebview/FinestWebViewActivity.java +++ b/library/src/main/java/com/thefinestartist/finestwebview/FinestWebViewActivity.java @@ -646,6 +646,10 @@ protected void initializeViews() { ((ViewGroup) webView.getParent()).removeAllViews(); swipeRefreshLayout.addView(webView); swipeRefreshLayout.removeViewAt(1); + + // Compensate coordinatorLayout pushing swipeRefreshLayout below appBar + float toolbarHeight = getResources().getDimension(R.dimen.toolbarHeight); + swipeRefreshLayout.setPadding(0, 0, 0, (int) toolbarHeight); } } if (webViewDisplayZoomControls != null