Request support rules to refresh when account changes.
Bug: 30079512 When account is added, operation rule can potentially change. Request a refresh to make sure user sees the latest UI. Change-Id: I89e9d97bec22d612ca3602d86cc63f8f06355a39
This commit is contained in:
@@ -89,7 +89,7 @@ public final class SupportItemAdapter extends RecyclerView.Adapter<SupportItemAd
|
||||
} else {
|
||||
mSelectedCountry = mSupportFeatureProvider.getCurrentCountryCodeIfHasConfig(PHONE);
|
||||
}
|
||||
setAccount(mSupportFeatureProvider.getSupportEligibleAccount(mActivity));
|
||||
mAccount = mSupportFeatureProvider.getSupportEligibleAccount(mActivity);
|
||||
refreshData();
|
||||
}
|
||||
|
||||
@@ -155,6 +155,7 @@ public final class SupportItemAdapter extends RecyclerView.Adapter<SupportItemAd
|
||||
public void setAccount(Account account) {
|
||||
if (!Objects.equals(mAccount, account)) {
|
||||
mAccount = account;
|
||||
mSupportFeatureProvider.refreshOperationRules();
|
||||
refreshData();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user