fix wrong backgrounds being used by tablet headline views

properly reset feedisselected flag when menu is shown
This commit is contained in:
Andrew Dolgov 2013-05-28 15:52:54 +04:00
parent e84345ce5a
commit 7e03ca0e73
5 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,6 @@
android:id="@+id/main" android:id="@+id/main"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:background="?headlinesBackgroundSolid"
android:orientation="vertical" > android:orientation="vertical" >
<FrameLayout <FrameLayout

View File

@ -27,7 +27,6 @@
<FrameLayout <FrameLayout
android:id="@+id/headlines_fragment" android:id="@+id/headlines_fragment"
android:background="?smallScreenBackground"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" > android:layout_height="match_parent" >
</FrameLayout> </FrameLayout>

View File

@ -2,7 +2,6 @@
android:id="@+id/main" android:id="@+id/main"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:background="?headlinesBackgroundSolid"
android:orientation="vertical" > android:orientation="vertical" >
<FrameLayout <FrameLayout

View File

@ -73,6 +73,7 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe
public void onOpened() { public void onOpened() {
if (m_actionbarRevertDepth == 0) { if (m_actionbarRevertDepth == 0) {
m_actionbarUpEnabled = false; m_actionbarUpEnabled = false;
m_feedIsSelected = false;
getSupportActionBar().setDisplayHomeAsUpEnabled(false); getSupportActionBar().setDisplayHomeAsUpEnabled(false);
initMenu(); initMenu();
} }

View File

@ -63,6 +63,7 @@ public class OfflineFeedsActivity extends OfflineActivity implements OfflineHead
public void onOpened() { public void onOpened() {
if (m_actionbarRevertDepth == 0) { if (m_actionbarRevertDepth == 0) {
m_actionbarUpEnabled = false; m_actionbarUpEnabled = false;
m_feedIsSelected = false;
getSupportActionBar().setDisplayHomeAsUpEnabled(false); getSupportActionBar().setDisplayHomeAsUpEnabled(false);
initMenu(); initMenu();
} }