// Path: Something/src/main/java/net/fastfourier/something/widget/LockableSlidingPaneLayout.java
// public class LockableSlidingPaneLayout extends SlidingPaneLayout {
//     public LockableSlidingPaneLayout(Context context) {
//         super(context);
//     }
// 
//     public LockableSlidingPaneLayout(Context context, AttributeSet attrs) {
//         super(context, attrs);
//     }
// 
//     public LockableSlidingPaneLayout(Context context, AttributeSet attrs, int defStyle) {
//         super(context, attrs, defStyle);
//     }
// 
//     private boolean locked = false;
// 
//     @Override
//     public boolean onInterceptTouchEvent(MotionEvent ev) {
//         return !locked && super.onInterceptTouchEvent(ev);
//     }
// 
//     @Override
//     public boolean onTouchEvent(MotionEvent ev) {
//         return !locked && super.onTouchEvent(ev);
//     }
// 
//     public void setLocked(boolean locked){
//         this.locked = locked;
//     }
// }


import android.app.ActionBar;
import android.os.Bundle;
import android.support.v4.widget.SlidingPaneLayout;
import android.view.MenuItem;
import android.view.View;
import net.fastfourier.something.widget.LockableSlidingPaneLayout;
        if(bar != null){
            bar.setDisplayHomeAsUpEnabled(true);
        }
    }

    @Override
    public void onBackPressed() {
        if(isMenuShowing()){
            super.onBackPressed();
        }else{
            showMenu();
        }
    }

    @Override
    protected void onResume() {
        super.onResume();
        if(isMenuShowing()){
            listFragment.setMenuVisibility(true);
            messageFragment.setMenuVisibility(false);
        }else{
            listFragment.setMenuVisibility(false);
            messageFragment.setMenuVisibility(true);
        }
        lockDrawer(!messageFragment.isPMLoaded());
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()){
// Path: Something/src/main/java/net/fastfourier/something/widget/LockableSlidingPaneLayout.java
// public class LockableSlidingPaneLayout extends SlidingPaneLayout {
//     public LockableSlidingPaneLayout(Context context) {
//         super(context);
//     }
// 
//     public LockableSlidingPaneLayout(Context context, AttributeSet attrs) {
//         super(context, attrs);
//     }
// 
//     public LockableSlidingPaneLayout(Context context, AttributeSet attrs, int defStyle) {
//         super(context, attrs, defStyle);
//     }
// 
//     private boolean locked = false;
// 
//     @Override
//     public boolean onInterceptTouchEvent(MotionEvent ev) {
//         return !locked && super.onInterceptTouchEvent(ev);
//     }
// 
//     @Override
//     public boolean onTouchEvent(MotionEvent ev) {
//         return !locked && super.onTouchEvent(ev);
//     }
// 
//     public void setLocked(boolean locked){
//         this.locked = locked;
//     }
// }


// Path: Something/src/main/java/net/fastfourier/something/PrivateMessageListActivity.java
import android.app.ActionBar;
import android.os.Bundle;
import android.support.v4.widget.SlidingPaneLayout;
import android.view.MenuItem;
import android.view.View;
import net.fastfourier.something.widget.LockableSlidingPaneLayout;

        if(bar != null){
            bar.setDisplayHomeAsUpEnabled(true);
        }
    }

    @Override
    public void onBackPressed() {
        if(isMenuShowing()){
            super.onBackPressed();
        }else{
            showMenu();
        }
    }

    @Override
    protected void onResume() {
        super.onResume();
        if(isMenuShowing()){
            listFragment.setMenuVisibility(true);
            messageFragment.setMenuVisibility(false);
        }else{
            listFragment.setMenuVisibility(false);
            messageFragment.setMenuVisibility(true);
        }
        lockDrawer(!messageFragment.isPMLoaded());
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()){
            case android.R.id.home: