diff --git a/common/src/main/java/com/yunbao/common/activity/WebViewActivity.java b/common/src/main/java/com/yunbao/common/activity/WebViewActivity.java index 946591739..0b56ea832 100644 --- a/common/src/main/java/com/yunbao/common/activity/WebViewActivity.java +++ b/common/src/main/java/com/yunbao/common/activity/WebViewActivity.java @@ -94,6 +94,15 @@ public class WebViewActivity extends AbsActivity { // getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR | View.SYSTEM_UI_FLAG_LAYOUT_STABLE); } + @Override + public void backClick(View v) { + if (mWebView.canGoBack()){ + mWebView.goBack(); + }else { + finish(); + } + } + @Override protected void main() { String url = getIntent().getStringExtra(Constants.URL); diff --git a/common/src/main/res/layout/activity_webview.xml b/common/src/main/res/layout/activity_webview.xml index e22ab8281..38d1e572f 100644 --- a/common/src/main/res/layout/activity_webview.xml +++ b/common/src/main/res/layout/activity_webview.xml @@ -16,7 +16,6 @@ android:id="@+id/ft_title" android:layout_width="match_parent" android:layout_height="72dp" - android:background="@color/white" android:paddingTop="24dp" tools:visibility="gone"> diff --git a/main/src/main/res/layout/view_new_main_me.xml b/main/src/main/res/layout/view_new_main_me.xml index aca5c0dcd..75399c3aa 100644 --- a/main/src/main/res/layout/view_new_main_me.xml +++ b/main/src/main/res/layout/view_new_main_me.xml @@ -453,7 +453,7 @@