allow closing active feed in tablet mode
This commit is contained in:
parent
3fd2afa44b
commit
a1337b531e
@ -829,6 +829,15 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
||||
closeArticle();
|
||||
} else if (m_activeCategory != null) {
|
||||
closeCategory();
|
||||
} else if (m_activeFeed != null) {
|
||||
findViewById(R.id.headlines_fragment).setVisibility(
|
||||
View.INVISIBLE);
|
||||
|
||||
m_activeFeed = null;
|
||||
|
||||
refreshFeeds();
|
||||
initMainMenu();
|
||||
|
||||
} else if (allowQuit) {
|
||||
finish();
|
||||
}
|
||||
@ -1405,6 +1414,8 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
||||
if (m_smallScreenMode) {
|
||||
findViewById(R.id.feeds_fragment).setVisibility(View.GONE);
|
||||
findViewById(R.id.headlines_fragment).setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
findViewById(R.id.headlines_fragment).setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
if (!append) {
|
||||
|
@ -337,6 +337,13 @@ public class OfflineActivity extends FragmentActivity implements
|
||||
} else {
|
||||
if (m_selectedArticleId != 0) {
|
||||
closeArticle();
|
||||
} else if (m_activeFeedId != 0) {
|
||||
findViewById(R.id.headlines_fragment).setVisibility(View.INVISIBLE);
|
||||
m_activeFeedId = 0;
|
||||
|
||||
refreshViews();
|
||||
initMainMenu();
|
||||
|
||||
} else if (allowQuit) {
|
||||
finish();
|
||||
}
|
||||
@ -960,6 +967,8 @@ public class OfflineActivity extends FragmentActivity implements
|
||||
if (m_smallScreenMode) {
|
||||
findViewById(R.id.feeds_fragment).setVisibility(View.GONE);
|
||||
findViewById(R.id.headlines_fragment).setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
findViewById(R.id.headlines_fragment).setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
deselectAllArticles();
|
||||
|
Loading…
Reference in New Issue
Block a user