fixed dark theme
This commit is contained in:
parent
0bbe1fcad7
commit
64336d5d26
|
@ -167,10 +167,17 @@ public class MainActivity extends ActionBarActivity implements NavDrawerActivity
|
||||||
transaction.replace(R.id.main_view, mainFragment);
|
transaction.replace(R.id.main_view, mainFragment);
|
||||||
} else {
|
} else {
|
||||||
String lastFragment = getLastNavFragment();
|
String lastFragment = getLastNavFragment();
|
||||||
if(ArrayUtils.contains(NAV_DRAWER_TAGS, lastFragment)) {
|
if (ArrayUtils.contains(NAV_DRAWER_TAGS, lastFragment)) {
|
||||||
loadFragment(lastFragment, null);
|
loadFragment(lastFragment, null);
|
||||||
} else {
|
} else {
|
||||||
loadFeedFragmentById(Integer.valueOf(lastFragment), null);
|
try {
|
||||||
|
loadFeedFragmentById(Integer.valueOf(lastFragment), null);
|
||||||
|
} catch (NumberFormatException e) {
|
||||||
|
// it's not a number, this happens if we removed
|
||||||
|
// a label from the NAV_DRAWER_TAGS
|
||||||
|
// give them a nice default...
|
||||||
|
loadFragment(QueueFragment.TAG, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
externalPlayerFragment = new ExternalPlayerFragment();
|
externalPlayerFragment = new ExternalPlayerFragment();
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
android:id="@+id/viewpager"
|
android:id="@+id/viewpager"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0px"
|
android:layout_height="0px"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1" />
|
||||||
android:background="@android:color/white" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
Loading…
Reference in New Issue