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;
|
package com.TwentyCodes.android.LocationRinger.ui.fragments;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
|
|
||||||
import android.content.ContentValues;
|
import android.content.ContentValues;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
@@ -74,7 +75,6 @@ public class FeatureListFragment extends Fragment {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
*
|
|
||||||
* @see android.support.v4.app.ListFragment#onCreateView(android.view.LayoutInflater,
|
* @see android.support.v4.app.ListFragment#onCreateView(android.view.LayoutInflater,
|
||||||
* android.view.ViewGroup, android.os.Bundle)
|
* android.view.ViewGroup, android.os.Bundle)
|
||||||
*/
|
*/
|
||||||
@@ -94,9 +94,14 @@ public class FeatureListFragment extends Fragment {
|
|||||||
transaction.remove(fragment);
|
transaction.remove(fragment);
|
||||||
}
|
}
|
||||||
transaction.commit();
|
transaction.commit();
|
||||||
|
Collections.reverse(this.mFragments);
|
||||||
super.onPause();
|
super.onPause();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (non-Javadoc)
|
||||||
|
* @see android.support.v4.app.Fragment#onResume()
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
if (Debug.DEBUG)
|
if (Debug.DEBUG)
|
||||||
|
|||||||
Reference in New Issue
Block a user