/* * (non-Javadoc) * * @see * cn.mabin.lanfileshare.logic.StorageReceiver.OnStorageListener#onUnmounted * () */ @Override public void onUnmounted() { Log.i(TAG, "onUnmounted: isStorageAvailable = " + isStorageAvailable); if (isStorageAvailable) { isStorageAvailable = false; mStorageObservable.fireFastNotify(false); } }
/* * (non-Javadoc) * * @see * cn.mabin.lanfileshare.logic.StorageReceiver.OnStorageListener#onMounted() */ @Override public void onMounted() { Log.i(TAG, "onMounted: isStorageAvailable = " + isStorageAvailable); if (!isStorageAvailable) { isStorageAvailable = true; mStorageObservable.fireFastNotify(true); } }