dump active headlines fragment when closing feed
This commit is contained in:
parent
d8b7761ad4
commit
27f129ad4c
@ -781,6 +781,10 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
||||
View.GONE);
|
||||
findViewById(R.id.cats_fragment)
|
||||
.setVisibility(View.VISIBLE);
|
||||
|
||||
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
||||
ft.replace(R.id.headlines_fragment, new HeadlinesFragment());
|
||||
ft.commit();
|
||||
|
||||
FeedCategoriesFragment cf = (FeedCategoriesFragment) getSupportFragmentManager()
|
||||
.findFragmentById(R.id.cats_fragment);
|
||||
@ -796,6 +800,10 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
||||
findViewById(R.id.feeds_fragment).setVisibility(
|
||||
View.VISIBLE);
|
||||
|
||||
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
||||
ft.replace(R.id.headlines_fragment, new HeadlinesFragment());
|
||||
ft.commit();
|
||||
|
||||
refreshFeeds();
|
||||
}
|
||||
|
||||
@ -840,6 +848,10 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
||||
|
||||
m_activeFeed = null;
|
||||
|
||||
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
||||
ft.replace(R.id.headlines_fragment, new HeadlinesFragment());
|
||||
ft.commit();
|
||||
|
||||
refreshFeeds();
|
||||
initMainMenu();
|
||||
|
||||
|
@ -7,9 +7,9 @@ import android.app.Dialog;
|
||||
import android.app.NotificationManager;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.DialogInterface.OnClickListener;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.DialogInterface.OnClickListener;
|
||||
import android.content.res.Configuration;
|
||||
import android.database.Cursor;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
@ -339,6 +339,10 @@ public class OfflineActivity extends FragmentActivity implements
|
||||
ff.setSelectedFeedId(0);
|
||||
}
|
||||
|
||||
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
||||
ft.replace(R.id.headlines_fragment, new OfflineHeadlinesFragment());
|
||||
ft.commit();
|
||||
|
||||
refreshViews();
|
||||
initMainMenu();
|
||||
|
||||
@ -358,7 +362,11 @@ public class OfflineActivity extends FragmentActivity implements
|
||||
if (ff != null) {
|
||||
ff.setSelectedFeedId(0);
|
||||
}
|
||||
|
||||
|
||||
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
||||
ft.replace(R.id.headlines_fragment, new OfflineHeadlinesFragment());
|
||||
ft.commit();
|
||||
|
||||
refreshViews();
|
||||
initMainMenu();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user