Skip to content

Commit

Permalink
Change variable name
Browse files Browse the repository at this point in the history
Signed-off-by: enricocid <enrico2588@gmail.com>
  • Loading branch information
enricocid committed Sep 25, 2018
1 parent 09a0fcd commit 7347c10
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public void onServiceDisconnected(@NonNull final ComponentName componentName) {
mMusicService = null;
}
};
private boolean mIsBound;
private boolean sBound;
private Parcelable mSavedArtistRecyclerLayoutState;
private Parcelable mSavedAlbumsRecyclerLayoutState;
private Parcelable mSavedSongRecyclerLayoutState;
Expand Down Expand Up @@ -536,17 +536,17 @@ private void doBindService() {
// supporting component replacement by other applications).
bindService(new Intent(this,
MusicService.class), mConnection, Context.BIND_AUTO_CREATE);
mIsBound = true;
sBound = true;

final Intent startNotStickyIntent = new Intent(this, MusicService.class);
startService(startNotStickyIntent);
}

private void doUnbindService() {
if (mIsBound) {
if (sBound) {
// Detach our existing connection.
unbindService(mConnection);
mIsBound = false;
sBound = false;
}
}

Expand Down

0 comments on commit 7347c10

Please sign in to comment.