mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-15 18:36:01 -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() {
|
public long getSpaceAvailable() {
|
||||||
return new File(PreferenceManager.getDefaultSharedPreferences(super.getActivity())
|
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 {
|
public class DownloadServiceConnection {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user