隐藏第三方登录和分享
This commit is contained in:
@@ -13,7 +13,7 @@ android {
|
||||
compileSdkVersion 30
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.mango.yinyou"
|
||||
applicationId "com.mango.moshen"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 29
|
||||
versionCode Integer.valueOf(version_code)
|
||||
|
@@ -104,9 +104,10 @@ public abstract class BaseLoginAct extends BaseActivity {
|
||||
if (throwable == null) {
|
||||
showTvDesc(loginTipsInfo.getTips());
|
||||
|
||||
showTvLoginTip(loginTipsInfo.isShowWechat() || loginTipsInfo.isShowQq());
|
||||
showThirdPartLogin(loginTipsInfo.isShowWechat(), loginTipsInfo.isShowQq(), loginTipsInfo.isShowOneClick());
|
||||
|
||||
//showTvLoginTip(loginTipsInfo.isShowWechat() || loginTipsInfo.isShowQq());
|
||||
//showThirdPartLogin(loginTipsInfo.isShowWechat(), loginTipsInfo.isShowQq(), loginTipsInfo.isShowOneClick());
|
||||
showTvLoginTip(false);
|
||||
showThirdPartLogin(false, false, loginTipsInfo.isShowOneClick());
|
||||
} else {
|
||||
showTvLoginTip(false);
|
||||
showThirdPartLogin(false, false, false);
|
||||
|
@@ -41,7 +41,6 @@ public class ShareDialog extends BottomSheetDialog implements View.OnClickListen
|
||||
private WindowManager windowManager;
|
||||
private int width;
|
||||
private TextView tvName;
|
||||
private TextView tvErban;
|
||||
private TextView tvWeixin;
|
||||
private TextView tvWeixinpy;
|
||||
private TextView tvQq;
|
||||
@@ -67,20 +66,17 @@ public class ShareDialog extends BottomSheetDialog implements View.OnClickListen
|
||||
setContentView(R.layout.dialog_share);
|
||||
setCanceledOnTouchOutside(true);
|
||||
tvName = (TextView) findViewById(R.id.tv_title);
|
||||
tvErban = findViewById(R.id.tv_erban);
|
||||
tvWeixin = (TextView) findViewById(R.id.tv_weixin);
|
||||
tvWeixinpy = (TextView) findViewById(R.id.tv_weixinpy);
|
||||
tvQq = (TextView) findViewById(R.id.tv_qq);
|
||||
tvQqZone = (TextView) findViewById(R.id.tv_qq_zone);
|
||||
tvCancel = (TextView) findViewById(R.id.tv_cancel);
|
||||
|
||||
tvErban.setOnClickListener(this);
|
||||
tvWeixin.setOnClickListener(this);
|
||||
tvWeixinpy.setOnClickListener(this);
|
||||
tvQq.setOnClickListener(this);
|
||||
tvQqZone.setOnClickListener(this);
|
||||
tvCancel.setOnClickListener(this);
|
||||
findViewById(R.id.tv_qq_game).setOnClickListener(this);
|
||||
FrameLayout bottomSheet = findViewById(R.id.design_bottom_sheet);
|
||||
if (bottomSheet != null) {
|
||||
BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(false);
|
||||
@@ -95,10 +91,6 @@ public class ShareDialog extends BottomSheetDialog implements View.OnClickListen
|
||||
params.height = WindowManager.LayoutParams.MATCH_PARENT;
|
||||
getWindow().setAttributes(params);
|
||||
|
||||
if (type == TYPE_SHARE_H5){
|
||||
tvErban.setVisibility(View.GONE);
|
||||
tvQq.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
@@ -139,7 +131,6 @@ public class ShareDialog extends BottomSheetDialog implements View.OnClickListen
|
||||
dismiss();
|
||||
break;
|
||||
case R.id.tv_qq:
|
||||
case R.id.tv_qq_game:
|
||||
if (onShareDialogItemClick != null) {
|
||||
onShareDialogItemClick.onSharePlatformClick(ShareSDK.getPlatform(QQ.NAME));
|
||||
}
|
||||
|
@@ -17,14 +17,13 @@
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="100dp"
|
||||
android:layout_marginTop="7dp"
|
||||
android:layout_marginBottom="@dimen/dp_10"
|
||||
android:gravity="center"
|
||||
android:text="@string/title_share_dialog"
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="13sp"
|
||||
android:visibility="gone"
|
||||
android:text="分享功能维护中..."
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="18sp"
|
||||
tools:ignore="SpUsage" />
|
||||
|
||||
<LinearLayout
|
||||
@@ -32,7 +31,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/white"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical">
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
@@ -43,21 +43,6 @@
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="4">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_erban"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_17"
|
||||
android:layout_marginBottom="19dp"
|
||||
android:layout_weight="1"
|
||||
android:drawableTop="@drawable/icon_erban_friends"
|
||||
android:drawablePadding="9dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/text_share_erban_friends"
|
||||
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/font_medium" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_weixinpy"
|
||||
android:layout_width="0dp"
|
||||
@@ -100,30 +85,6 @@
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/font_medium" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_qq_game"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_17"
|
||||
android:layout_marginBottom="19dp"
|
||||
android:layout_weight="1"
|
||||
android:drawableTop="@drawable/icon_qq"
|
||||
android:drawablePadding="9dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/text_share_qq_friends"
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/font_medium" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/transparent"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="4">
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_qq"
|
||||
android:layout_width="0dp"
|
||||
@@ -137,42 +98,9 @@
|
||||
android:text="@string/text_share_qq_friends"
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/font_medium" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_17"
|
||||
android:layout_marginBottom="19dp"
|
||||
android:layout_weight="1"
|
||||
android:drawablePadding="9dp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/font_medium" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_17"
|
||||
android:layout_marginBottom="19dp"
|
||||
android:layout_weight="1"
|
||||
android:drawablePadding="9dp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/font_medium" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_17"
|
||||
android:layout_marginBottom="19dp"
|
||||
android:layout_weight="1"
|
||||
android:drawablePadding="9dp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/font_medium" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
|
Reference in New Issue
Block a user