aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicActivity.java5
-rw-r--r--src/github/daneren2005/dsub/util/compat/RemoteControlClientJB.java2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
index 3859d58d..22d2a62c 100644
--- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java
+++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
@@ -41,6 +41,7 @@ import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
+import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
@@ -198,12 +199,12 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
drawer.setOnTouchListener(new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
- if(currentFragment != null && currentFragment.getGestureDetector() != null) {
+ if (currentFragment != null && currentFragment.getGestureDetector() != null) {
return currentFragment.getGestureDetector().onTouchEvent(event);
} else {
return false;
}
- }
+ }
});
// Check whether this is a tablet or not
diff --git a/src/github/daneren2005/dsub/util/compat/RemoteControlClientJB.java b/src/github/daneren2005/dsub/util/compat/RemoteControlClientJB.java
index f0008a9b..c499f6c0 100644
--- a/src/github/daneren2005/dsub/util/compat/RemoteControlClientJB.java
+++ b/src/github/daneren2005/dsub/util/compat/RemoteControlClientJB.java
@@ -13,7 +13,7 @@ import android.media.RemoteControlClient;
import github.daneren2005.dsub.activity.SubsonicActivity;
import github.daneren2005.dsub.service.DownloadService;
-@TargetApi(16)
+@TargetApi(18)
public class RemoteControlClientJB extends RemoteControlClientICS {
@Override
public void register(final Context context, final ComponentName mediaButtonReceiverComponent) {