feat:隐藏line相关入口
This commit is contained in:
@@ -29,8 +29,8 @@ public class ShareDialog extends BottomSheetDialog implements View.OnClickListen
|
||||
public static final int TYPE_SHARE_H5 = 4;
|
||||
|
||||
private final Context context;
|
||||
private TextView tvLink;
|
||||
private TextView tvLine;
|
||||
// private TextView tvLink;
|
||||
// private TextView tvLine;
|
||||
private TextView tvCancel;
|
||||
private static final String TAG = "ShareDialog";
|
||||
private OnShareDialogItemClick onShareDialogItemClick;
|
||||
@@ -51,12 +51,12 @@ public class ShareDialog extends BottomSheetDialog implements View.OnClickListen
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.dialog_share);
|
||||
setCanceledOnTouchOutside(true);
|
||||
tvLine = findViewById(R.id.tv_line);
|
||||
tvLink = findViewById(R.id.tv_share_link);
|
||||
// tvLine = findViewById(R.id.tv_line);
|
||||
// tvLink = findViewById(R.id.tv_share_link);
|
||||
tvCancel = findViewById(R.id.tv_cancel);
|
||||
|
||||
tvLine.setOnClickListener(this);
|
||||
tvLink.setOnClickListener(this);
|
||||
// tvLine.setOnClickListener(this);
|
||||
// tvLink.setOnClickListener(this);
|
||||
tvCancel.setOnClickListener(this);
|
||||
FrameLayout bottomSheet = findViewById(R.id.design_bottom_sheet);
|
||||
if (bottomSheet != null) {
|
||||
|
@@ -34,19 +34,19 @@
|
||||
android:orientation="horizontal"
|
||||
android:weightSum="4">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_line"
|
||||
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:text="@string/share_line"
|
||||
android:textColor="@color/color_999999"
|
||||
android:textSize="@dimen/font_medium"
|
||||
app:drawableTopCompat="@drawable/icon_line" />
|
||||
<!-- <TextView-->
|
||||
<!-- android:id="@+id/tv_line"-->
|
||||
<!-- 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:text="@string/share_line"-->
|
||||
<!-- android:textColor="@color/color_999999"-->
|
||||
<!-- android:textSize="@dimen/font_medium"-->
|
||||
<!-- app:drawableTopCompat="@drawable/icon_line" />-->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_share_link"
|
||||
|
@@ -82,7 +82,7 @@ public class QuickPassLoginAct extends BaseLoginAct implements View.OnClickListe
|
||||
findViewById(R.id.tv_google_last_login).setVisibility(View.VISIBLE);
|
||||
break;
|
||||
case SpConstants.LINE:
|
||||
findViewById(R.id.tv_line_last_login).setVisibility(View.VISIBLE);
|
||||
// findViewById(R.id.tv_line_last_login).setVisibility(View.VISIBLE);
|
||||
break;
|
||||
}
|
||||
setProtocol();
|
||||
@@ -90,7 +90,7 @@ public class QuickPassLoginAct extends BaseLoginAct implements View.OnClickListe
|
||||
|
||||
private void onSetListener() {
|
||||
findViewById(R.id.cs_google).setOnClickListener(this);
|
||||
findViewById(R.id.cs_line).setOnClickListener(this);
|
||||
// findViewById(R.id.cs_line).setOnClickListener(this);
|
||||
findViewById(R.id.tv_password_login).setOnClickListener(this);
|
||||
}
|
||||
|
||||
@@ -146,33 +146,33 @@ public class QuickPassLoginAct extends BaseLoginAct implements View.OnClickListe
|
||||
}
|
||||
});
|
||||
break;
|
||||
case R.id.cs_line:
|
||||
StatisticManager.Instance().onEvent(StatisticsProtocol.EVENT_LOGIN_LINE_CLICK);
|
||||
getDialogManager().showProgressDialog(this);
|
||||
AuthModel.get().lineLogin()
|
||||
.compose(bindUntilEvent(ActivityEvent.DESTROY))
|
||||
.subscribe(new SingleObserver<String>() {
|
||||
@Override
|
||||
public void onSubscribe(Disposable d) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(String result) {
|
||||
getDialogManager().dismissDialog();
|
||||
SPUtils.putString(SpConstants.LOGIN_TYPE, SpConstants.LINE);
|
||||
setResult(RESULT_OK);
|
||||
finish();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
getDialogManager().dismissDialog();
|
||||
dealWithLoginError(e);
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
break;
|
||||
// case R.id.cs_line:
|
||||
// StatisticManager.Instance().onEvent(StatisticsProtocol.EVENT_LOGIN_LINE_CLICK);
|
||||
// getDialogManager().showProgressDialog(this);
|
||||
// AuthModel.get().lineLogin()
|
||||
// .compose(bindUntilEvent(ActivityEvent.DESTROY))
|
||||
// .subscribe(new SingleObserver<String>() {
|
||||
// @Override
|
||||
// public void onSubscribe(Disposable d) {
|
||||
//
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onSuccess(String result) {
|
||||
// getDialogManager().dismissDialog();
|
||||
// SPUtils.putString(SpConstants.LOGIN_TYPE, SpConstants.LINE);
|
||||
// setResult(RESULT_OK);
|
||||
// finish();
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onError(Throwable e) {
|
||||
// getDialogManager().dismissDialog();
|
||||
// dealWithLoginError(e);
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// });
|
||||
// break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -89,54 +89,54 @@
|
||||
app:layout_constraintTop_toTopOf="@+id/cs_google"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/cs_line"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginTop="@dimen/dp_16"
|
||||
android:layout_marginEnd="40dp"
|
||||
android:background="@drawable/shape_login_btn_bg"
|
||||
app:layout_constraintTop_toBottomOf="@+id/cs_google">
|
||||
<!-- <androidx.constraintlayout.widget.ConstraintLayout-->
|
||||
<!-- android:id="@+id/cs_line"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="46dp"-->
|
||||
<!-- android:layout_marginStart="40dp"-->
|
||||
<!-- android:layout_marginTop="@dimen/dp_16"-->
|
||||
<!-- android:layout_marginEnd="40dp"-->
|
||||
<!-- android:background="@drawable/shape_login_btn_bg"-->
|
||||
<!-- app:layout_constraintTop_toBottomOf="@+id/cs_google">-->
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/tv_line"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="46dp"
|
||||
android:background="@drawable/shape_login_btn_bg"
|
||||
android:gravity="center"
|
||||
android:text="@string/login_line"
|
||||
android:textColor="#6D6B89"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
<!-- <androidx.appcompat.widget.AppCompatTextView-->
|
||||
<!-- android:id="@+id/tv_line"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="46dp"-->
|
||||
<!-- android:background="@drawable/shape_login_btn_bg"-->
|
||||
<!-- android:gravity="center"-->
|
||||
<!-- android:text="@string/login_line"-->
|
||||
<!-- android:textColor="#6D6B89"-->
|
||||
<!-- android:textSize="16sp"-->
|
||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
||||
<!-- app:layout_constraintTop_toTopOf="parent" />-->
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_28"
|
||||
android:src="@drawable/ic_login_line"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
<!-- <androidx.appcompat.widget.AppCompatImageView-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginStart="@dimen/dp_28"-->
|
||||
<!-- android:src="@drawable/ic_login_line"-->
|
||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
||||
<!-- app:layout_constraintTop_toTopOf="parent" />-->
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/tv_line_last_login"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="-10dp"
|
||||
android:layout_marginEnd="-10dp"
|
||||
android:background="@drawable/bg_last_login"
|
||||
android:gravity="center"
|
||||
android:text="@string/last_login"
|
||||
android:textColor="@color/color_F5F6FA"
|
||||
android:textSize="@dimen/sp_12"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="@+id/cs_line"
|
||||
app:layout_constraintTop_toTopOf="@+id/cs_line"
|
||||
tools:visibility="visible" />
|
||||
<!-- <androidx.appcompat.widget.AppCompatTextView-->
|
||||
<!-- android:id="@+id/tv_line_last_login"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginTop="-10dp"-->
|
||||
<!-- android:layout_marginEnd="-10dp"-->
|
||||
<!-- android:background="@drawable/bg_last_login"-->
|
||||
<!-- android:gravity="center"-->
|
||||
<!-- android:text="@string/last_login"-->
|
||||
<!-- android:textColor="@color/color_F5F6FA"-->
|
||||
<!-- android:textSize="@dimen/sp_12"-->
|
||||
<!-- android:visibility="gone"-->
|
||||
<!-- app:layout_constraintEnd_toEndOf="@+id/cs_line"-->
|
||||
<!-- app:layout_constraintTop_toTopOf="@+id/cs_line"-->
|
||||
<!-- tools:visibility="visible" />-->
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<!-- </androidx.constraintlayout.widget.ConstraintLayout>-->
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/tv_protocol"
|
||||
|
Reference in New Issue
Block a user