Ver Fonte

隐私权限

詹子聪 há 5 anos atrás
pai
commit
fd97aff64c

+ 4 - 0
app/src/main/java/com/itant/shibei/ui/home/about/AboutFragment.java

@@ -35,6 +35,7 @@ public class AboutFragment extends BaseMVPFragment implements View.OnClickListen
         rootView.findViewById(R.id.tv_feedback).setOnClickListener(this);
         rootView.findViewById(R.id.tv_update).setOnClickListener(this);
         rootView.findViewById(R.id.tv_more).setOnClickListener(this);
+        rootView.findViewById(R.id.tv_protocol).setOnClickListener(this);
     }
 
     @Override
@@ -63,6 +64,9 @@ public class AboutFragment extends BaseMVPFragment implements View.OnClickListen
                 SystemTool.copyText(getActivity(), "http://jianjie.life");
                 ToastTool.showShort("已拷贝主页链接");
                 break;
+            case R.id.tv_protocol:
+                ActivityTool.openUrl(getActivity(), "http://note.youdao.com/s/KTiCW1qH");
+                break;
             default:
                 break;
         }

+ 2 - 1
app/src/main/res/layout/fragment_about.xml

@@ -105,8 +105,9 @@
 
     <include layout="@layout/view_divider" />
 
-    <!--TODO 隐私政策、用户协议-->
+    <!--隐私政策、用户协议-->
     <TextView
+        android:id="@+id/tv_protocol"
         android:layout_width="match_parent"
         android:layout_height="@dimen/height_sliding_tab"
         android:background="?attr/selectableItemBackground"