committed by
Android (Google) Code Review
commit
9ff6483843
@@ -28643,6 +28643,17 @@
|
|||||||
visibility="public"
|
visibility="public"
|
||||||
>
|
>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="dismissAllowingStateLoss"
|
||||||
|
return="void"
|
||||||
|
abstract="false"
|
||||||
|
native="false"
|
||||||
|
synchronized="false"
|
||||||
|
static="false"
|
||||||
|
final="false"
|
||||||
|
deprecated="not deprecated"
|
||||||
|
visibility="public"
|
||||||
|
>
|
||||||
|
</method>
|
||||||
<method name="getDialog"
|
<method name="getDialog"
|
||||||
return="android.app.Dialog"
|
return="android.app.Dialog"
|
||||||
abstract="false"
|
abstract="false"
|
||||||
@@ -267031,7 +267042,7 @@
|
|||||||
deprecated="not deprecated"
|
deprecated="not deprecated"
|
||||||
visibility="public"
|
visibility="public"
|
||||||
>
|
>
|
||||||
<parameter name="t" type="T">
|
<parameter name="arg0" type="T">
|
||||||
</parameter>
|
</parameter>
|
||||||
</method>
|
</method>
|
||||||
</interface>
|
</interface>
|
||||||
|
|||||||
@@ -258,6 +258,16 @@ public class DialogFragment extends Fragment
|
|||||||
dismissInternal(false);
|
dismissInternal(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Version of {@link #dismiss()} that uses
|
||||||
|
* {@link FragmentTransaction#commitAllowingStateLoss()
|
||||||
|
* FragmentTransaction.commitAllowingStateLoss()}. See linked
|
||||||
|
* documentation for further details.
|
||||||
|
*/
|
||||||
|
public void dismissAllowingStateLoss() {
|
||||||
|
dismissInternal(true);
|
||||||
|
}
|
||||||
|
|
||||||
void dismissInternal(boolean allowStateLoss) {
|
void dismissInternal(boolean allowStateLoss) {
|
||||||
if (mDismissed) {
|
if (mDismissed) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -1049,7 +1049,7 @@ public abstract class PreferenceActivity extends ListActivity implements
|
|||||||
FragmentTransaction transaction = getFragmentManager().beginTransaction();
|
FragmentTransaction transaction = getFragmentManager().beginTransaction();
|
||||||
transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
|
transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
|
||||||
transaction.replace(com.android.internal.R.id.prefs, f);
|
transaction.replace(com.android.internal.R.id.prefs, f);
|
||||||
transaction.commit();
|
transaction.commitAllowingStateLoss();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1144,7 +1144,7 @@ public abstract class PreferenceActivity extends ListActivity implements
|
|||||||
} else {
|
} else {
|
||||||
transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
|
transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
|
||||||
}
|
}
|
||||||
transaction.commit();
|
transaction.commitAllowingStateLoss();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1184,7 +1184,7 @@ public abstract class PreferenceActivity extends ListActivity implements
|
|||||||
}
|
}
|
||||||
transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
|
transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
|
||||||
transaction.addToBackStack(BACK_STACK_PREFS);
|
transaction.addToBackStack(BACK_STACK_PREFS);
|
||||||
transaction.commit();
|
transaction.commitAllowingStateLoss();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user