mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-14 18:06:39 -04:00
Android Download Manager always displays correct free space #300
This commit is contained in:
parent
050142af5f
commit
a8b09d17ad
@ -276,7 +276,7 @@ public class LibraryFragment extends Fragment implements AdapterView.OnItemClick
|
||||
|
||||
public long getSpaceAvailable() {
|
||||
return new File(PreferenceManager.getDefaultSharedPreferences(super.getActivity())
|
||||
.getString(KiwixMobileActivity.PREF_STORAGE,Environment.getExternalStorageState())).getFreeSpace();
|
||||
.getString(KiwixMobileActivity.PREF_STORAGE,Environment.getExternalStorageDirectory().getPath())).getFreeSpace();
|
||||
}
|
||||
|
||||
public class DownloadServiceConnection {
|
||||
|
Loading…
x
Reference in New Issue
Block a user