Skip to content

Commit 2572ed0

Browse files
committed
use the system default theme by default
1 parent 4d74a2d commit 2572ed0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/src/main/java/xyz/klinker/android/drag_dismiss/DragDismissIntentBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public enum DragElasticity {
4343
NORMAL, LARGE, XLARGE, XXLARGE
4444
}
4545

46-
private Theme theme = Theme.LIGHT;
46+
private Theme theme = Theme.SYSTEM_DEFAULT;
4747
private DragElasticity dragElasticity = DragElasticity.NORMAL;
4848
private int primaryColor = -1;
4949
private String toolbarTitle = null;

sample/src/main/java/xyz/klinker/drag_dismiss/SampleActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void onClick(View v) {
3636
Intent scrollable = new Intent(SampleActivity.this, DismissableActivityNormalContent.class);
3737

3838
new DragDismissIntentBuilder(SampleActivity.this)
39-
.setTheme(DragDismissIntentBuilder.Theme.LIGHT)
39+
.setTheme(DragDismissIntentBuilder.Theme.SYSTEM_DEFAULT)
4040
.setPrimaryColorResource(R.color.colorPrimary)
4141
.setToolbarTitle("Normal Activity Sample")
4242
.build(scrollable);

0 commit comments

Comments
 (0)