mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Converting exception logs to printStackTrace
This commit is contained in:
parent
84ea21ff05
commit
aea5b5fc14
3 changed files with 20 additions and 20 deletions
|
|
@ -36,7 +36,7 @@ public class MediaManager {
|
||||||
clearDatabase();
|
clearDatabase();
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -52,7 +52,7 @@ public class MediaManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -71,7 +71,7 @@ public class MediaManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -88,7 +88,7 @@ public class MediaManager {
|
||||||
mediaBrowserListenableFuture.get().prepare();
|
mediaBrowserListenableFuture.get().prepare();
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -102,7 +102,7 @@ public class MediaManager {
|
||||||
mediaBrowserListenableFuture.get().prepare();
|
mediaBrowserListenableFuture.get().prepare();
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -116,7 +116,7 @@ public class MediaManager {
|
||||||
mediaBrowserListenableFuture.get().play();
|
mediaBrowserListenableFuture.get().play();
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -130,7 +130,7 @@ public class MediaManager {
|
||||||
mediaBrowserListenableFuture.get().pause();
|
mediaBrowserListenableFuture.get().pause();
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -144,7 +144,7 @@ public class MediaManager {
|
||||||
mediaBrowserListenableFuture.get().stop();
|
mediaBrowserListenableFuture.get().stop();
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -158,7 +158,7 @@ public class MediaManager {
|
||||||
mediaBrowserListenableFuture.get().clearMediaItems();
|
mediaBrowserListenableFuture.get().clearMediaItems();
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -177,7 +177,7 @@ public class MediaManager {
|
||||||
enqueueDatabase(media, true, 0);
|
enqueueDatabase(media, true, 0);
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -195,7 +195,7 @@ public class MediaManager {
|
||||||
enqueueDatabase(media, true, 0);
|
enqueueDatabase(media, true, 0);
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -215,7 +215,7 @@ public class MediaManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -235,7 +235,7 @@ public class MediaManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -250,7 +250,7 @@ public class MediaManager {
|
||||||
swapDatabase(media);
|
swapDatabase(media);
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -269,7 +269,7 @@ public class MediaManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -283,7 +283,7 @@ public class MediaManager {
|
||||||
callback.onRecovery(mediaBrowserListenableFuture.get().getCurrentMediaItemIndex());
|
callback.onRecovery(mediaBrowserListenableFuture.get().getCurrentMediaItemIndex());
|
||||||
}
|
}
|
||||||
} catch (ExecutionException | InterruptedException e) {
|
} catch (ExecutionException | InterruptedException e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
package com.cappielloantonio.play.ui.fragment;
|
package com.cappielloantonio.play.ui.fragment;
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
|
||||||
import android.content.ComponentName;
|
import android.content.ComponentName;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
|
|
@ -103,7 +102,7 @@ public class PlayerBottomSheetFragment extends Fragment {
|
||||||
|
|
||||||
setMediaControllerListener(mediaBrowser);
|
setMediaControllerListener(mediaBrowser);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
@ -181,7 +180,8 @@ public class PlayerBottomSheetFragment extends Fragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setProgress(MediaBrowser mediaBrowser) {
|
private void setProgress(MediaBrowser mediaBrowser) {
|
||||||
if (bind != null) bind.playerHeaderLayout.playerHeaderSeekBar.setProgress((int) (mediaBrowser.getCurrentPosition() / 1000), true);
|
if (bind != null)
|
||||||
|
bind.playerHeaderLayout.playerHeaderSeekBar.setProgress((int) (mediaBrowser.getCurrentPosition() / 1000), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setPlayingState(boolean isPlaying) {
|
private void setPlayingState(boolean isPlaying) {
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ public class PlayerControllerFragment extends Fragment {
|
||||||
|
|
||||||
setMediaControllerListener(mediaBrowser);
|
setMediaControllerListener(mediaBrowser);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.e(TAG, e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, MoreExecutors.directExecutor());
|
}, MoreExecutors.directExecutor());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue