Skip to content

Commit

Permalink
add state logging to BaseSaiPackageInstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
Aefyr committed Nov 16, 2019
1 parent 7005633 commit 895e450
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.aefyr.sai.installer2.base.model.SaiPiSessionParams;
import com.aefyr.sai.installer2.base.model.SaiPiSessionState;
import com.aefyr.sai.installer2.base.model.SaiPiSessionStatus;
import com.aefyr.sai.utils.Logs;
import com.aefyr.sai.utils.Utils;

import java.util.ArrayList;
Expand Down Expand Up @@ -57,6 +58,7 @@ public List<SaiPiSessionState> getSessions() {
}

protected void setSessionState(String sessionId, SaiPiSessionState state) {
Logs.d(tag(), String.format("%s->setSessionState(%s, %s)", getClass().getSimpleName(), sessionId, state));
mSessionStates.put(sessionId, state);
Utils.onMainThread(() -> {
for (SaiPiSessionObserver observer : mObservers)
Expand Down

0 comments on commit 895e450

Please sign in to comment.