Skip to content

Commit

Permalink
Demo: empty ctors for DialogFragments
Browse files Browse the repository at this point in the history
Fixes Play-Store-reported crash.
  • Loading branch information
bauerca committed Nov 26, 2012
1 parent 2ac56d1 commit 44d3a13
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions demo/src/com/mobeta/android/demodslv/DragInitModeDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import android.content.DialogInterface;
import android.os.Bundle;

import com.mobeta.android.dslv.DragSortController;

/**
* Sets drag init mode on DSLV controller passed into ctor.
*/
Expand All @@ -19,6 +21,11 @@ public class DragInitModeDialog extends DialogFragment {

private DragOkListener mListener;

public DragInitModeDialog() {
super();
mDragInitMode = DragSortController.ON_DOWN;
}

public DragInitModeDialog(int dragStartMode) {
super();
mDragInitMode = dragStartMode;
Expand Down
8 changes: 8 additions & 0 deletions demo/src/com/mobeta/android/demodslv/EnablesDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ public class EnablesDialog extends DialogFragment {

private EnabledOkListener mListener;

public EnablesDialog() {
super();
mEnabled = new boolean[3];
mEnabled[0] = true;
mEnabled[1] = true;
mEnabled[2] = false;
}

public EnablesDialog(boolean drag, boolean sort, boolean remove) {
super();
mEnabled = new boolean[3];
Expand Down
7 changes: 7 additions & 0 deletions demo/src/com/mobeta/android/demodslv/RemoveModeDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import android.content.DialogInterface;
import android.os.Bundle;

import com.mobeta.android.dslv.DragSortController;

/**
* Simply passes remove mode back to OnOkListener
*/
Expand All @@ -17,6 +19,11 @@ public class RemoveModeDialog extends DialogFragment {

private RemoveOkListener mListener;

public RemoveModeDialog() {
super();
mRemoveMode = DragSortController.FLING_RIGHT_REMOVE;
}

public RemoveModeDialog(int inRemoveMode) {
super();
mRemoveMode = inRemoveMode;
Expand Down

0 comments on commit 44d3a13

Please sign in to comment.