diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-05-06 07:25:21 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-05-06 07:25:21 -0700 |
commit | 1cd95e3918d44ccb0b594f7d97eaa047e624a1ee (patch) | |
tree | 2b7e8e8229874fd948571018a2970c8dfeefcd97 /subsonic-android | |
parent | 6f0bef21d3e64cb884b641f016ed6e162b061a82 (diff) | |
download | dsub-1cd95e3918d44ccb0b594f7d97eaa047e624a1ee.tar.gz dsub-1cd95e3918d44ccb0b594f7d97eaa047e624a1ee.tar.bz2 dsub-1cd95e3918d44ccb0b594f7d97eaa047e624a1ee.zip |
NoSuchMethod is not a Exception apparently
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/AndroidManifest.xml | 2 | ||||
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/subsonic-android/AndroidManifest.xml b/subsonic-android/AndroidManifest.xml index 68fd1c0a..7ab94ba4 100644 --- a/subsonic-android/AndroidManifest.xml +++ b/subsonic-android/AndroidManifest.xml @@ -2,7 +2,7 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="github.daneren2005.dsub"
android:installLocation="internalOnly"
- android:versionCode="44"
+ android:versionCode="45"
android:versionName="3.8.6">
<uses-permission android:name="android.permission.INTERNET"/>
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index 2c6a1059..060fa35d 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -162,7 +162,7 @@ public class DownloadServiceImpl extends Service implements DownloadService { i.putExtra(AudioEffect.EXTRA_AUDIO_SESSION, mediaPlayer.getAudioSessionId()); i.putExtra(AudioEffect.EXTRA_PACKAGE_NAME, getPackageName()); sendBroadcast(i); - } catch(Exception e) { + } catch(Throwable e) { // Froyo or lower } @@ -188,7 +188,7 @@ public class DownloadServiceImpl extends Service implements DownloadService { SharedPreferences prefs = Util.getPreferences(this); try { timerDuration = Integer.parseInt(prefs.getString(Constants.PREFERENCES_KEY_SLEEP_TIMER_DURATION, "5")); - } catch(Exception e) { + } catch(Throwable e) { timerDuration = 5; } sleepTimer = null; @@ -225,7 +225,7 @@ public class DownloadServiceImpl extends Service implements DownloadService { i.putExtra(AudioEffect.EXTRA_AUDIO_SESSION, mediaPlayer.getAudioSessionId()); i.putExtra(AudioEffect.EXTRA_PACKAGE_NAME, getPackageName()); sendBroadcast(i); - } catch(Exception e) { + } catch(Throwable e) { // Froyo or lower } @@ -1078,7 +1078,7 @@ public class DownloadServiceImpl extends Service implements DownloadService { nextMediaPlayer.setWakeMode(DownloadServiceImpl.this, PowerManager.PARTIAL_WAKE_LOCK); try { nextMediaPlayer.setAudioSessionId(mediaPlayer.getAudioSessionId()); - } catch(Exception e) { + } catch(Throwable e) { nextMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); } nextMediaPlayer.setDataSource(file.getPath()); |