/** @param action Which action defined in BaseActivity.State is the picker shown for. */
 public void setPickTarget(int action, DocumentInfo pickTarget) {
   mAction = action;
   mPickTarget = pickTarget;
   if (mContainer != null) {
     updateView();
   }
 }
  @Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    mContainer = inflater.inflate(R.layout.fragment_pick, container, false);

    mPick = (Button) mContainer.findViewById(android.R.id.button1);
    mPick.setOnClickListener(mPickListener);

    mCancel = (Button) mContainer.findViewById(android.R.id.button2);
    mCancel.setOnClickListener(mCancelListener);

    updateView();
    return mContainer;
  }