Loading src/com/android/settings/dashboard/SupportItemAdapter.java +2 −1 Original line number Diff line number Diff line Loading @@ -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(); } Loading Loading @@ -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(); } } Loading src/com/android/settings/overlay/SupportFeatureProvider.java +5 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,11 @@ public interface SupportFeatureProvider { */ boolean isSupportTypeEnabled(Context context, @SupportType int type); /** * Refreshes all operation rules. */ void refreshOperationRules(); /** * Whether or not a support type is in operation 24/7. If country is null, use * current country. Loading Loading
src/com/android/settings/dashboard/SupportItemAdapter.java +2 −1 Original line number Diff line number Diff line Loading @@ -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(); } Loading Loading @@ -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(); } } Loading
src/com/android/settings/overlay/SupportFeatureProvider.java +5 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,11 @@ public interface SupportFeatureProvider { */ boolean isSupportTypeEnabled(Context context, @SupportType int type); /** * Refreshes all operation rules. */ void refreshOperationRules(); /** * Whether or not a support type is in operation 24/7. If country is null, use * current country. Loading