fix NetworkOnMainThread issue for refreshDeviceList on MainActivity.