From f28ff5c7f86fa860216ffbee44e6f25c0cfe60ea Mon Sep 17 00:00:00 2001 From: ppamorim Date: Thu, 14 May 2015 17:08:45 -0300 Subject: [PATCH] close activity added --- .../java/com/github/ppamorim/dragger/DraggerActivity.java | 4 ++++ .../main/java/com/github/ppamorim/dragger/DraggerPanel.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/dragger/src/main/java/com/github/ppamorim/dragger/DraggerActivity.java b/dragger/src/main/java/com/github/ppamorim/dragger/DraggerActivity.java index eed9c38..31504d1 100644 --- a/dragger/src/main/java/com/github/ppamorim/dragger/DraggerActivity.java +++ b/dragger/src/main/java/com/github/ppamorim/dragger/DraggerActivity.java @@ -71,4 +71,8 @@ public void setSlideEnabled(boolean enabled) { draggerPanel.setSlideEnabled(enabled); } + public void closeActivity() { + draggerPanel.closeActivity(); + } + } diff --git a/dragger/src/main/java/com/github/ppamorim/dragger/DraggerPanel.java b/dragger/src/main/java/com/github/ppamorim/dragger/DraggerPanel.java index fa7f22e..b47fa2e 100644 --- a/dragger/src/main/java/com/github/ppamorim/dragger/DraggerPanel.java +++ b/dragger/src/main/java/com/github/ppamorim/dragger/DraggerPanel.java @@ -98,4 +98,8 @@ private void eraseViewIfNeeded(FrameLayout frameLayout) { } } + public void closeActivity() { + draggerView.closeActivity(); + } + }