Skip to content

Commit

Permalink
10 inch tablet fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacwaller committed Dec 30, 2013
1 parent 2be1666 commit 874af94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion coinbase-android/res/layout-sw800dp/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

<View android:layout_width="1dp"
android:layout_height="match_parent"
android:background="#dddddd" />
android:background="#dddddd"
android:id="@+id/activity_main_divider"/>

<!-- The main content view -->
<include layout="@layout/activity_main_content" />
Expand Down
6 changes: 5 additions & 1 deletion coinbase-android/src/com/coinbase/android/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public void onCreate(Bundle savedInstanceState) {
mViewFlipper = (ViewFlipper) findViewById(R.id.flipper);

// Configure the DrawerLayout (never pin menu on POS app)
mPinSlidingMenu = getResources().getBoolean(R.bool.pin_sliding_menu) && BuildConfig.type == BuildType.CONSUMER;
mPinSlidingMenu = getResources().getBoolean(R.bool.pin_sliding_menu);
getSupportActionBar().setHomeButtonEnabled(!mPinSlidingMenu);

if(!mPinSlidingMenu) {
Expand Down Expand Up @@ -219,6 +219,10 @@ public void onDrawerOpened(View drawerView) {

// Set up Sliding Menu list
mMenuListView = (ListView) findViewById(R.id.drawer);
if (BuildConfig.type == BuildType.MERCHANT && mPinSlidingMenu) {
mMenuListView.setVisibility(View.GONE);
findViewById(R.id.activity_main_divider).setVisibility(View.GONE);
}
createProfileView();
int shortestWidth = Math.min(getResources().getDisplayMetrics().widthPixels, getResources().getDisplayMetrics().heightPixels);
int dWidthCalc = (int) (shortestWidth * (3.0/4.0)),
Expand Down

0 comments on commit 874af94

Please sign in to comment.