@ -85,12 +84,16 @@ public class RssfeedsActivity extends AppCompatActivity {
@@ -85,12 +84,16 @@ public class RssfeedsActivity extends AppCompatActivity {
@Bean
protectedApplicationSettingsapplicationSettings;
// Contained feeds and items fragments
protectedRssfeedsFragmentfragmentLocalFeeds;
protectedRemoteRssFragmentfragmentRemoteFeeds;
protectedstaticfinalintRSS_FEEDS_LOCAL=0;
protectedstaticfinalintRSS_FEEDS_REMOTE=1;
@FragmentById(R.id.remoterss_fragment)
protectedRemoteRssFragmentfragmentRemoteFeeds;
@FragmentById(R.id.rssitems_fragment)
protectedRssitemsFragmentfragmentItems;
@FragmentById(R.id.rssfeeds_fragment)
protectedRssfeedsFragmentfragmentLocalFeeds;
@ViewById
protectedToolbarrssfeedsToolbar;
@ViewById(R.id.rssfeeds_tabs)
@ -98,9 +101,6 @@ public class RssfeedsActivity extends AppCompatActivity {
@@ -98,9 +101,6 @@ public class RssfeedsActivity extends AppCompatActivity {
@ViewById(R.id.rssfeeds_pager)
protectedViewPagerviewPager;
protectedstaticfinalintRSS_FEEDS_LOCAL=0;
protectedstaticfinalintRSS_FEEDS_REMOTE=1;
// remote RSS stuff
@NonConfigurationInstance
protectedArrayList<RemoteRssChannel>feeds;
@ -195,24 +195,6 @@ public class RssfeedsActivity extends AppCompatActivity {
@@ -195,24 +195,6 @@ public class RssfeedsActivity extends AppCompatActivity {
}
}
publicvoidonFragmentReady(Fragmentfragment){
if(fragmentinstanceofRssfeedsFragment){
fragmentLocalFeeds=(RssfeedsFragment)fragment;
}
elseif(fragmentinstanceofRemoteRssFragment){
fragmentRemoteFeeds=(RemoteRssFragment)fragment;
}
}
publicvoidonFragmentDestroy(Fragmentfragment){
if(fragmentinstanceofRssfeedsFragment){
fragmentLocalFeeds=null;
}
elseif(fragmentinstanceofRemoteRssFragment){
fragmentRemoteFeeds=null;
}
}
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
@OptionsItem(android.R.id.home)
protectedvoidnavigateUp(){
@ -232,9 +214,7 @@ public class RssfeedsActivity extends AppCompatActivity {
@@ -232,9 +214,7 @@ public class RssfeedsActivity extends AppCompatActivity {
loadRssfeed(loader);
}
if(fragmentLocalFeeds!=null){
fragmentLocalFeeds.update(loaders);
}
fragmentLocalFeeds.update(loaders);
}
/**
@ -266,9 +246,7 @@ public class RssfeedsActivity extends AppCompatActivity {
@@ -266,9 +246,7 @@ public class RssfeedsActivity extends AppCompatActivity {
@ -373,11 +351,9 @@ public class RssfeedsActivity extends AppCompatActivity {
@@ -373,11 +351,9 @@ public class RssfeedsActivity extends AppCompatActivity {
false/* allow android to restore scroll position */);
showRemoteChannelFilters();
}
@ -446,8 +422,6 @@ public class RssfeedsActivity extends AppCompatActivity {
@@ -446,8 +422,6 @@ public class RssfeedsActivity extends AppCompatActivity {