I added a call to Collections.reverse() for mFragments in
FeatureListFragment.onPause() This has fixed the issuse of the fragments reversing their order. The root cause is decribed here http://code.google.com/p/android/issues/detail?id=31116#makechanges Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
package com.TwentyCodes.android.LocationRinger.ui.fragments;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
||||
import android.content.ContentValues;
|
||||
import android.os.Bundle;
|
||||
@@ -74,7 +75,6 @@ public class FeatureListFragment extends Fragment {
|
||||
|
||||
/**
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see android.support.v4.app.ListFragment#onCreateView(android.view.LayoutInflater,
|
||||
* android.view.ViewGroup, android.os.Bundle)
|
||||
*/
|
||||
@@ -94,9 +94,14 @@ public class FeatureListFragment extends Fragment {
|
||||
transaction.remove(fragment);
|
||||
}
|
||||
transaction.commit();
|
||||
Collections.reverse(this.mFragments);
|
||||
super.onPause();
|
||||
}
|
||||
|
||||
/**
|
||||
* (non-Javadoc)
|
||||
* @see android.support.v4.app.Fragment#onResume()
|
||||
*/
|
||||
@Override
|
||||
public void onResume() {
|
||||
if (Debug.DEBUG)
|
||||
|
||||
Reference in New Issue
Block a user