final String message = context.getResources().getQuantityString(
R.plurals.NNNtrackstoplaylist, numinserted, numinserted);
AppMsg.makeText((Activity)context, message, AppMsg.STYLE_CONFIRM).show();
+ playlistChanged();
}
/**
final String message = context.getResources().getQuantityString(
R.plurals.NNNtracksfromplaylist, 1, 1);
AppMsg.makeText((Activity)context, message, AppMsg.STYLE_CONFIRM).show();
+ playlistChanged();
}
/**
}
/**
+ * Called when one of playlists have changed
+ */
+ public static void playlistChanged() {
+ try {
+ if (mService != null) {
+ mService.playlistChanged();
+ }
+ } catch (final RemoteException ignored) {
+ }
+ }
+
+ /**
* Seeks the current track to a desired position
*
* @param position The position to seek to
return mService.position();
} catch (final RemoteException ignored) {
} catch (final IllegalStateException ex) {
- Log.e(MusicUtils.class.getSimpleName(), ex.getMessage());
+ // Illegal State Exception message is empty so logging will actually throw an
+ // exception. We should come back and figure out why we get an exception in the
+ // first place and make sure we understand it completely. I will use
+ // https://cyanogen.atlassian.net/browse/MUSIC-125 to track investigating this more
}
}
return 0;
return mService.duration();
} catch (final RemoteException ignored) {
} catch (final IllegalStateException ignored) {
+ // Illegal State Exception message is empty so logging will actually throw an
+ // exception. We should come back and figure out why we get an exception in the
+ // first place and make sure we understand it completely. I will use
+ // https://cyanogen.atlassian.net/browse/MUSIC-125 to track investigating this more
}
}
return 0;