@@ -104,6 +104,7 @@ public class RewardsTippingPanelFragment
104
104
private TextView mUsdSymbol1 ;
105
105
private TextView mUsdSymbol2 ;
106
106
private boolean mEnoughFundWarningShown ;
107
+ private TextView mCustodianText ;
107
108
108
109
public static RewardsTippingPanelFragment newInstance (int tabId , String web3Url ) {
109
110
RewardsTippingPanelFragment fragment = new RewardsTippingPanelFragment ();
@@ -158,6 +159,7 @@ public Dialog onCreateDialog(Bundle savedInstance) {
158
159
mSendButton = view .findViewById (R .id .send_tip_button );
159
160
mWeb3WalletButton = view .findViewById (R .id .use_web3_wallet_button );
160
161
mTipProgressBar = view .findViewById (R .id .send_tip_progress_bar );
162
+ mCustodianText = view .findViewById (R .id .custodian_text );
161
163
162
164
init (view );
163
165
setBalanceText (view );
@@ -243,12 +245,15 @@ public void OnGetExternalWallet(String externalWallet) {
243
245
try {
244
246
mExternalWallet = new BraveRewardsExternalWallet (externalWallet );
245
247
walletStatus = mExternalWallet .getStatus ();
246
-
247
- if (walletStatus == WalletStatus .LOGGED_OUT ) {
248
- setLogoutStateMessage ();
248
+ if (walletStatus != WalletStatus .NOT_CONNECTED ) {
249
+ if (walletStatus == WalletStatus .LOGGED_OUT ) {
250
+ setLogoutStateMessage ();
251
+ } else {
252
+ int pubStatus = mBraveRewardsNativeWorker .GetPublisherStatus (mCurrentTabId );
253
+ setPublisherNoteText (pubStatus , walletStatus );
254
+ }
249
255
} else {
250
- int pubStatus = mBraveRewardsNativeWorker .GetPublisherStatus (mCurrentTabId );
251
- setPublisherNoteText (pubStatus , walletStatus );
256
+ mCustodianText .setVisibility (View .GONE );
252
257
}
253
258
} catch (JSONException e ) {
254
259
mExternalWallet = null ;
@@ -562,9 +567,8 @@ private void setCustodianIconAndName(View view) {
562
567
custodianName = R .string .gemini ;
563
568
}
564
569
565
- TextView custodian = view .findViewById (R .id .custodian_text );
566
- custodian .setText (custodianName );
567
- custodian .setCompoundDrawablesWithIntrinsicBounds (custodianIcon , 0 , 0 , 0 );
570
+ mCustodianText .setText (custodianName );
571
+ mCustodianText .setCompoundDrawablesWithIntrinsicBounds (custodianIcon , 0 , 0 , 0 );
568
572
}
569
573
570
574
private void initTipChoice (boolean isBat ) {
0 commit comments