Skip to content

Commit

Permalink
moved requestCode to Fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyScherzinger committed Mar 3, 2016
1 parent 8d038e8 commit f34a9dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ public class FileDisplayActivity extends HookActivity
private boolean mSyncInProgress = false;

private static String DIALOG_UNTRUSTED_CERT = "DIALOG_UNTRUSTED_CERT";
public static String DIALOG_CREATE_FOLDER = "DIALOG_CREATE_FOLDER";
private static String DIALOG_UPLOAD_SOURCE = "DIALOG_UPLOAD_SOURCE";
private static String DIALOG_CERT_NOT_SAVED = "DIALOG_CERT_NOT_SAVED";

Expand Down
4 changes: 3 additions & 1 deletion src/com/owncloud/android/ui/fragment/OCFileListFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ public class OCFileListFragment extends ExtendedListFragment

private static final String GRID_IS_PREFERED_PREFERENCE = "gridIsPrefered";

private static String DIALOG_CREATE_FOLDER = "DIALOG_CREATE_FOLDER";

private FileFragment.ContainerActivity mContainerActivity;

private OCFile mFile = null;
Expand Down Expand Up @@ -252,7 +254,7 @@ private void registerFabMkDirListeners() {
public void onClick(View v) {
CreateFolderDialogFragment dialog =
CreateFolderDialogFragment.newInstance(mFile);
dialog.show(getActivity().getSupportFragmentManager(), FileDisplayActivity.DIALOG_CREATE_FOLDER);
dialog.show(getActivity().getSupportFragmentManager(), DIALOG_CREATE_FOLDER);
getFabMain().collapse();
recordMiniFabClick();
}
Expand Down

0 comments on commit f34a9dd

Please sign in to comment.