|
|
@@ -74,6 +74,7 @@ public class SubscriptionAllFragment extends BaseFragment {
|
|
|
private List<AllSubscriptonKindMessage> mNetAllSubscriptonKindMessages;
|
|
|
private List<SubscriptionNumber> mNetSubscriptionNumbers;
|
|
|
|
|
|
+ private String mBufferKey = null;
|
|
|
@Override
|
|
|
protected int getLayout() {
|
|
|
return R.layout.fragment_all_subscription;
|
|
|
@@ -211,6 +212,7 @@ public class SubscriptionAllFragment extends BaseFragment {
|
|
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
|
|
mSubsTypeAdapter.setSelectItem(position);
|
|
|
mSubsTypeAdapter.notifyDataSetChanged();
|
|
|
+ mBufferKey = keyStrings.get(position);
|
|
|
rbPos = position;
|
|
|
if (mAllSubscriptonKindMessages.get(rbPos).getSubscriptionNumbers().size() != 0) {
|
|
|
mAllSubscriptionAdapter = new AllSubscriptionAdapter(getActivity(), mAllSubscriptonKindMessages.get(rbPos).getSubscriptionNumbers());
|
|
|
@@ -360,6 +362,9 @@ public class SubscriptionAllFragment extends BaseFragment {
|
|
|
tempSubscriptonKindMessage.setSubscriptionKind(currentKey);
|
|
|
tempSubscriptonKindMessage.setSubscriptionNumbers(tempSubscriptionNumbers);
|
|
|
mAllSubscriptonKindMessages.add(tempSubscriptonKindMessage);
|
|
|
+ if (mBufferKey != null && mBufferKey.equals(keyStrings.get(i))){
|
|
|
+ rbPos = i;
|
|
|
+ }
|
|
|
}
|
|
|
mAllSubscriptionAdapter.getmSubscriptionNumbers().clear();
|
|
|
mAllSubscriptionAdapter.getmSubscriptionNumbers().addAll(mAllSubscriptonKindMessages.get(rbPos).getSubscriptionNumbers());
|
|
|
@@ -503,6 +508,13 @@ public class SubscriptionAllFragment extends BaseFragment {
|
|
|
mAllSubscriptionAdapter.getmSubscriptionNumbers().clear();
|
|
|
mAllSubscriptionAdapter.notifyDataSetChanged();
|
|
|
} else {
|
|
|
+ if (mBufferKey != null){
|
|
|
+ for (int i = 0; i < keyStrings.size(); i++) {
|
|
|
+ if (mBufferKey.equals(keyStrings.get(i))){
|
|
|
+ rbPos = i;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
mTypeListView.setVisibility(View.VISIBLE);
|
|
|
mSubsTypeAdapter.notifyDataSetChanged();
|
|
|
mAllSubscriptionAdapter.getmSubscriptionNumbers().clear();
|