mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-02 20:46:15 +01:00
fix finish() so it pops stack in fragment case
This commit is contained in:
parent
31d01e4ef0
commit
8981765897
2 changed files with 10 additions and 1 deletions
|
@ -223,8 +223,12 @@ public class DelegateBase implements DlgClickNotify,
|
||||||
|
|
||||||
protected void finish()
|
protected void finish()
|
||||||
{
|
{
|
||||||
|
if ( m_activity instanceof FragActivity ) {
|
||||||
|
((FragActivity)m_activity).finishFragment();
|
||||||
|
} else {
|
||||||
m_activity.finish();
|
m_activity.finish();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected String getString( int resID, Object... params )
|
protected String getString( int resID, Object... params )
|
||||||
{
|
{
|
||||||
|
|
|
@ -124,6 +124,11 @@ public class FragActivity extends FragmentActivity
|
||||||
// // addFragment( dbf );
|
// // addFragment( dbf );
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
protected void finishFragment()
|
||||||
|
{
|
||||||
|
popFragment( null );
|
||||||
|
}
|
||||||
|
|
||||||
protected void popFragment( Fragment frag )
|
protected void popFragment( Fragment frag )
|
||||||
{
|
{
|
||||||
getSupportFragmentManager().popBackStack();
|
getSupportFragmentManager().popBackStack();
|
||||||
|
|
Loading…
Add table
Reference in a new issue