Skip to content
Snippets Groups Projects
Commit edacf29a authored by Eugene Susla's avatar Eugene Susla
Browse files

More CDM logging

Some test failures can be hard to troubleshoot with current (lack of) logs
Adding more logs to CDM

Bug: 180060131
Test: presubmit
Change-Id: Ia57ae584244473fb36e701b1b8a2ba4b7fc69881
parent 8319d597
No related branches found
No related tags found
No related merge requests found
......@@ -165,6 +165,7 @@ public class DeviceChooserActivity extends Activity {
protected void onStop() {
super.onStop();
if (!isFinishing() && !isChangingConfigurations()) {
Log.i(LOG_TAG, "onStop() - cancelling");
cancel();
}
}
......@@ -195,7 +196,6 @@ public class DeviceChooserActivity extends Activity {
titleView.setText(title);
}
//TODO put in resources xmls
private ProgressBar getProgressBar() {
final ProgressBar progressBar = new ProgressBar(this);
progressBar.setForegroundGravity(Gravity.CENTER_HORIZONTAL);
......
......@@ -309,7 +309,7 @@ public class DeviceDiscoveryService extends Service {
}
private void onDeviceLost(@Nullable DeviceFilterPair device) {
if (DEBUG) Log.i(LOG_TAG, "Lost device " + device.getDisplayName());
Log.i(LOG_TAG, "Lost device " + device.getDisplayName());
Handler.getMain().sendMessage(obtainMessage(
DeviceDiscoveryService::onDeviceLostMainThread, this, device));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment