summaryrefslogtreecommitdiff
path: root/core/java/android/app/FragmentManager.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-12-08 14:49:15 -0800
committerDianne Hackborn <hackbod@google.com>2010-12-08 14:52:58 -0800
commit9d0718042f7c0a50d825c621f82ce9a92071f07a (patch)
tree586c4f558bf9f11304a183f4261f6886301a4881 /core/java/android/app/FragmentManager.java
parent514d7d8d95faadcc860f3a462daafe5fe0be3cf4 (diff)
Fix issues #3257701 and #3267312
3257701 Preference headers have duplicated "title" and "summary" if title is not loaded from a resource 3267312 Fragment.onConfigurationChanged doesn't get called Change-Id: I76e346ba88aa632ebb9aa413a2ce2645ebf357cd
Diffstat (limited to 'core/java/android/app/FragmentManager.java')
-rw-r--r--core/java/android/app/FragmentManager.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/core/java/android/app/FragmentManager.java b/core/java/android/app/FragmentManager.java
index fbad2fe52653..1b2d4df3f4a5 100644
--- a/core/java/android/app/FragmentManager.java
+++ b/core/java/android/app/FragmentManager.java
@@ -19,6 +19,7 @@ package android.app;
import android.animation.Animator;
import android.animation.AnimatorInflater;
import android.animation.AnimatorListenerAdapter;
+import android.content.res.Configuration;
import android.content.res.TypedArray;
import android.os.Bundle;
import android.os.Handler;
@@ -1415,6 +1416,28 @@ final class FragmentManagerImpl extends FragmentManager {
mActivity = null;
}
+ public void dispatchConfigurationChanged(Configuration newConfig) {
+ if (mActive != null) {
+ for (int i=0; i<mAdded.size(); i++) {
+ Fragment f = mAdded.get(i);
+ if (f != null) {
+ f.onConfigurationChanged(newConfig);
+ }
+ }
+ }
+ }
+
+ public void dispatchLowMemory() {
+ if (mActive != null) {
+ for (int i=0; i<mAdded.size(); i++) {
+ Fragment f = mAdded.get(i);
+ if (f != null) {
+ f.onLowMemory();
+ }
+ }
+ }
+ }
+
public boolean dispatchCreateOptionsMenu(Menu menu, MenuInflater inflater) {
boolean show = false;
ArrayList<Fragment> newMenus = null;