Remove userdrain tooltip
This commit is contained in:
@@ -219,7 +219,6 @@ public class BraveRewardsPanel
|
||||
private View mWalletBalanceProgress;
|
||||
private View mBalanceDataViewGroups;
|
||||
private View mEstimatedToolTip;
|
||||
private View mVbatUserdrainToolTip;
|
||||
private PopupWindowTippingTabletUI mPopupWindowTippingTabletUI;
|
||||
private boolean mIsTablet;
|
||||
|
||||
@@ -250,12 +249,6 @@ public class BraveRewardsPanel
|
||||
&& !isWithinViewBounds((int) event.getRawX(), (int) event.getRawY())) {
|
||||
estimatedTooltipGroup.setVisibility(View.GONE);
|
||||
}
|
||||
View vbatUserdrainTooltipGroup =
|
||||
mPopupView.findViewById(R.id.vbat_userdrain_tooltip_group);
|
||||
if (mVbatUserdrainToolTip != null && mVbatUserdrainToolTip.isShown()
|
||||
&& !isWithinViewBounds((int) event.getRawX(), (int) event.getRawY())) {
|
||||
vbatUserdrainTooltipGroup.setVisibility(View.GONE);
|
||||
}
|
||||
if (event.getAction() == MotionEvent.ACTION_OUTSIDE) {
|
||||
dismiss();
|
||||
return true;
|
||||
@@ -380,9 +373,6 @@ public class BraveRewardsPanel
|
||||
mEstimatedToolTip = mPopupView.findViewById(R.id.estimated_earnings_tooltip);
|
||||
maybeShowEstimatedToolTip();
|
||||
|
||||
mVbatUserdrainToolTip = mPopupView.findViewById(R.id.vbat_userdrain_tooltip);
|
||||
maybeShowVbatUserdrainToolTip();
|
||||
|
||||
TextView loggedOutStateText = mPopupView.findViewById(R.id.logged_out_state_text);
|
||||
if (mExternalWallet != null) {
|
||||
loggedOutStateText.setText(String.format(
|
||||
@@ -469,14 +459,6 @@ public class BraveRewardsPanel
|
||||
v -> { estimatedTooltipGroup.setVisibility(View.VISIBLE); });
|
||||
}
|
||||
|
||||
@SuppressLint("ClickableViewAccessibility")
|
||||
private void maybeShowVbatUserdrainToolTip() {
|
||||
View vBatUserdrainHelpImg = mPopupView.findViewById(R.id.vbat_userdrain_help_img);
|
||||
View vBatUserdrainTooltipGroup = mPopupView.findViewById(R.id.vbat_userdrain_tooltip_group);
|
||||
vBatUserdrainHelpImg.setOnClickListener(
|
||||
v -> { vBatUserdrainTooltipGroup.setVisibility(View.VISIBLE); });
|
||||
}
|
||||
|
||||
private void clickManageAds() {
|
||||
View manageAds = mPopupView.findViewById(R.id.manage_ads_text);
|
||||
manageAds.setOnClickListener(v -> {
|
||||
@@ -1176,12 +1158,6 @@ public class BraveRewardsPanel
|
||||
? View.GONE
|
||||
: View.VISIBLE);
|
||||
mWalletBalanceProgress.setVisibility(View.GONE);
|
||||
if (mBraveRewardsNativeWorker.isGrandfatheredUser() && mExternalWallet != null
|
||||
&& mExternalWallet.getType().equals(BraveWalletProvider.ZEBPAY)
|
||||
&& mExternalWallet.getStatus() == WalletStatus.CONNECTED) {
|
||||
mPopupView.findViewById(R.id.vbat_userdrain_help_img)
|
||||
.setVisibility(View.VISIBLE);
|
||||
}
|
||||
if (mBraveRewardsNativeWorker != null) {
|
||||
BraveRewardsBalance walletBalanceObject =
|
||||
mBraveRewardsNativeWorker.GetWalletBalance();
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:viewportWidth="18"
|
||||
android:viewportHeight="18">
|
||||
<path
|
||||
android:pathData="M9,16.5C4.864,16.5 1.5,13.136 1.5,9C1.5,4.864 4.864,1.5 9,1.5C13.136,1.5 16.5,4.864 16.5,9C16.5,13.136 13.136,16.5 9,16.5ZM9,2.75C5.554,2.75 2.75,5.554 2.75,9C2.75,12.446 5.554,15.25 9,15.25C12.446,15.25 15.25,12.446 15.25,9C15.25,5.554 12.446,2.75 9,2.75ZM10.493,9.215C9.587,9.948 9.621,10.76 9.623,10.794C9.642,11.134 9.385,11.432 9.045,11.458C9.029,11.459 9.014,11.459 8.998,11.459C8.677,11.459 8.406,11.219 8.377,10.895C8.373,10.835 8.263,9.412 9.706,8.243C10.108,7.919 10.25,7.634 10.25,7.157C10.25,6.431 9.689,5.839 9,5.839C8.288,5.839 7.75,6.377 7.75,7.089C7.75,7.435 7.47,7.714 7.125,7.714C6.78,7.714 6.5,7.435 6.5,7.089C6.5,5.688 7.598,4.59 9,4.59C10.379,4.59 11.5,5.741 11.5,7.157C11.5,8.016 11.189,8.651 10.493,9.215ZM9.103,12.116C9.443,12.175 9.674,12.481 9.616,12.821L9.61,12.856C9.557,13.16 9.293,13.375 8.994,13.375C8.959,13.375 8.924,13.372 8.887,13.366C8.547,13.307 8.319,12.984 8.378,12.644C8.437,12.304 8.761,12.057 9.103,12.116Z"
|
||||
android:fillColor="#F3C211"
|
||||
android:fillType="evenOdd"/>
|
||||
</vector>
|
||||
@@ -244,55 +244,6 @@
|
||||
app:layout_constraintBottom_toBottomOf="@id/bat_balance_text"
|
||||
app:layout_constraintStart_toEndOf="@id/bat_balance_text" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/vbat_userdrain_help_img"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:padding="4dp"
|
||||
android:contentDescription="@null"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@id/bat_text2"
|
||||
app:layout_constraintStart_toEndOf="@id/bat_text2"
|
||||
app:layout_constraintTop_toTopOf="@id/bat_text2"
|
||||
app:srcCompat="@drawable/ic_help_outline" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/vbat_userdrain_tooltip_triangle"
|
||||
android:layout_width="12sp"
|
||||
android:layout_height="6dp"
|
||||
android:scaleType="fitXY"
|
||||
app:srcCompat="@drawable/tooltip_arrow"
|
||||
android:contentDescription="@null"
|
||||
app:layout_constraintTop_toBottomOf="@id/vbat_userdrain_help_img"
|
||||
app:layout_constraintStart_toStartOf="@id/vbat_userdrain_help_img"
|
||||
app:layout_constraintEnd_toEndOf="@id/vbat_userdrain_help_img"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/vbat_userdrain_tooltip"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/p2p_rewards_inside_background"
|
||||
android:elevation="39dp"
|
||||
android:fontFamily="sans-serif"
|
||||
android:padding="16dp"
|
||||
android:textSize="12sp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:text="@string/vbat_userdrain_tooltip_text"
|
||||
android:textColor="@color/terms_of_service_text_color"
|
||||
app:layout_constraintHorizontal_bias="0.8"
|
||||
app:layout_constraintStart_toStartOf="@id/vbat_userdrain_tooltip_triangle"
|
||||
app:layout_constraintEnd_toEndOf="@id/vbat_userdrain_tooltip_triangle"
|
||||
app:layout_constraintTop_toBottomOf="@id/vbat_userdrain_tooltip_triangle"
|
||||
app:layout_constraintBottom_toBottomOf="parent" />
|
||||
|
||||
<androidx.constraintlayout.widget.Group
|
||||
android:id="@+id/vbat_userdrain_tooltip_group"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
app:constraint_referenced_ids="vbat_userdrain_tooltip_triangle,vbat_userdrain_tooltip" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/usd_balance_text"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
Reference in New Issue
Block a user