Skip to content

Commit

Permalink
Minor changes to strings to test out git integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
youngelf committed Mar 21, 2013
1 parent 528141c commit 2c58334
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/com/eggwall/SoundSleep/AudioService.java
Expand Up @@ -170,10 +170,10 @@ private void play(int type) {
// Either we weren't able to play custom music, or we were asked to play white noise.
final int resourceToPlay;
if (type == WHITE_NOISE) {
Log.v(TAG, "Playing browninan noise.");
Log.v(TAG, "Playing white noise.");
resourceToPlay = R.raw.noise;
} else {
Log.v(TAG, "Playing all of me.");
Log.v(TAG, "Playing included jingle.");
resourceToPlay = R.raw.jingle;
}
try {
Expand Down Expand Up @@ -334,16 +334,17 @@ private static File getMusicDirTillV7() {
private void setForegroundService() {
final Intent showClock = new Intent(this, SleepActivity.class);
final PendingIntent pending = PendingIntent.getActivity(this, 0, showClock, PendingIntent.FLAG_UPDATE_CURRENT);
final String title = "Playing music";
if (SDK >= 11) {
final Notification.Builder builder = new Notification.Builder(this)
.setContentTitle("Playing music")
.setContentTitle(title)
.setSmallIcon(R.drawable.ic_launcher)
.setOngoing(true);
builder.setContentIntent(pending);
mNotificationManager.notify(NOTIFICATION_ID, builder.build());
} else {
final NotificationCompat.Builder builder = new NotificationCompat.Builder(this)
.setContentTitle("Playing music")
.setContentTitle(title)
.setSmallIcon(R.drawable.ic_launcher)
.setOngoing(true);
builder.setContentIntent(pending);
Expand Down Expand Up @@ -372,7 +373,7 @@ private void removeNotification() {

@Override
public void onDestroy() {
Log.v(TAG, "bye bye");
Log.v(TAG, "AudioService: onDestroy() called");
removeNotification();
releasePlayer();
// Indicate that the service is quitting.
Expand Down

0 comments on commit 2c58334

Please sign in to comment.