소스 검색

Merge branch 'develop' of https://github.com/swict/LifePlusAndroid into develop

hyodong.min 7 년 전
부모
커밋
28c7540c49
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 0
      app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/web/WebFragment.java
  2. 1 1
      app/src/main/res/layout/fragment_web.xml

+ 4 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/web/WebFragment.java

@@ -145,6 +145,7 @@ public class WebFragment extends FragmentBase<WebPresenter> implements IWebView
   public void onClickPrev() {
     if (webView.canGoBack()) {
       webView.goBack();
+      imageViewNext.setImageDrawable(getActivity().getResources().getDrawable(R.drawable.icon_bottom_next_able));
     }
     else {
       presenter.onBackPressedInternal();
@@ -156,5 +157,8 @@ public class WebFragment extends FragmentBase<WebPresenter> implements IWebView
     if (webView.canGoForward()) {
       webView.goForward();
     }
+    else {
+      imageViewNext.setImageDrawable(getActivity().getResources().getDrawable(R.drawable.icon_bottom_next_disable));
+    }
   }
 }

+ 1 - 1
app/src/main/res/layout/fragment_web.xml

@@ -48,7 +48,7 @@
       app:layout_constraintEnd_toStartOf="@+id/image_view_refresh"
       app:layout_constraintStart_toEndOf="@+id/image_view_prev"
       app:layout_constraintTop_toTopOf="parent"
-      app:srcCompat="@drawable/icon_bottom_next_able"
+      app:srcCompat="@drawable/icon_bottom_next_disable"
       />
 
     <ImageView