Permalink
Browse files

quick bug fix.

  • Loading branch information...
1 parent c7be676 commit 752605f3a285bfa7fcaf168386fc6da9248ef4a9 @mariotaku committed Nov 18, 2012
View
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="300dp"
- android:layout_height="@dimen/set_color_height"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
android:gravity="center">
<GridView
@@ -11,7 +11,7 @@
android:layout_alignParentTop="true"
android:gravity="center"
android:horizontalSpacing="2dp"
- android:numColumns="3"
+ android:numColumns="auto_fit"
android:verticalSpacing="4dp"/>
-</RelativeLayout>
+</RelativeLayout>
@@ -78,7 +78,7 @@ public void onBackStackChanged() {
showLeftPane();
}
} else {
- if (fm.findFragmentById(R.id.content) != null || left_pane_used) {
+ if (fm.findFragmentById(R.id.main) != null || left_pane_used) {
showLeftPane();
} else if (right_pane_used) {
showRightPane();
@@ -75,7 +75,7 @@ public void onCreate(final Bundle savedInstanceState) {
showFragment(mFragment, true);
} else {
final FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
- ft.replace(R.id.content, mFragment);
+ ft.replace(R.id.main, mFragment);
ft.commit();
}
return;
@@ -116,7 +116,7 @@ public boolean onOptionsItemSelected(final MenuItem item) {
protected void onStart() {
if (isDualPaneMode() && mFragment != null) {
final FragmentManager fm = getSupportFragmentManager();
- final Fragment f = fm.findFragmentById(R.id.content);
+ final Fragment f = fm.findFragmentById(R.id.main);
if (f != null) {
final FragmentTransaction ft = fm.beginTransaction();
ft.remove(f);
@@ -106,7 +106,7 @@ public boolean onPreferenceClick(final Preference preference) {
if (KEY_CUSTOM_TABS.equals(key)) {
if (isDualPaneMode()) {
final Fragment fragment = new CustomTabsFragment();
- showFragment(fragment, false);
+ showFragment(fragment, true);
} else {
final Intent intent = new Intent(INTENT_ACTION_CUSTOM_TABS);
intent.setPackage(getPackageName());
@@ -125,7 +125,7 @@ public boolean onPreferenceClick(final Preference preference) {
} else if (KEY_EXTENSIONS.equals(key)) {
if (isDualPaneMode()) {
final Fragment fragment = new ExtensionsListFragment();
- showFragment(fragment, false);
+ showFragment(fragment, true);
} else {
final Intent intent = new Intent(INTENT_ACTION_EXTENSIONS);
intent.setPackage(getPackageName());

0 comments on commit 752605f

Please sign in to comment.