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 0b56ea832..6cadac775 100644 --- a/common/src/main/java/com/yunbao/common/activity/WebViewActivity.java +++ b/common/src/main/java/com/yunbao/common/activity/WebViewActivity.java @@ -11,6 +11,7 @@ import android.os.Build; import android.os.Handler; import android.provider.MediaStore; import android.text.TextUtils; +import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; @@ -94,14 +95,6 @@ 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() { diff --git a/main/src/main/java/com/yunbao/main/views/MainMessageViewHolderForActivity.java b/main/src/main/java/com/yunbao/main/views/MainMessageViewHolderForActivity.java index e1b389c28..cf72a6a5d 100644 --- a/main/src/main/java/com/yunbao/main/views/MainMessageViewHolderForActivity.java +++ b/main/src/main/java/com/yunbao/main/views/MainMessageViewHolderForActivity.java @@ -71,7 +71,7 @@ public class MainMessageViewHolderForActivity extends AbsMainViewHolder { private String type = null; private List listUserBean = new ArrayList<>(); private LinearLayout topLayout, ltNodataMsg; - private ImageView imgNewsNotice, imgNewsInteraction, imgNewsOnline, imgSystemMessages; + private ImageView imgNewsNotice, imgNewsInteraction, imgNewsOnline, imgSystemMessages,btn_back; private Handler netHandler; private Activity mContext; @@ -119,6 +119,7 @@ public class MainMessageViewHolderForActivity extends AbsMainViewHolder { imgNewsInteraction = (ImageView) findViewById(R.id.img_news_interaction); imgSystemMessages = (ImageView) findViewById(R.id.img_system_messages); imgNewsOnline = (ImageView) findViewById(R.id.img_news_online); + btn_back = (ImageView) findViewById(R.id.btn_back); netHandler = new Handler(); } diff --git a/main/src/main/res/layout/view_main_message.xml b/main/src/main/res/layout/view_main_message.xml index a783924f1..542f13ef4 100644 --- a/main/src/main/res/layout/view_main_message.xml +++ b/main/src/main/res/layout/view_main_message.xml @@ -9,11 +9,22 @@ android:layout_width="match_parent" android:layout_height="wrap_content"> + +