SDL: renamed libcrypto and libssl to avoid clashing with system libraries, fixed crashes in SD card Java code

This commit is contained in:
Sergii Pylypenko
2016-06-10 19:43:32 +03:00
parent 90cc2821a6
commit cbd8374185
11 changed files with 56 additions and 20 deletions

View File

@@ -91,10 +91,10 @@ class SettingsMenuMisc extends SettingsMenu
long freePhone = 0;
try
{
StatFs sdcard = new StatFs(Settings.SdcardAppPath.get().bestPath(p));
StatFs phone = new StatFs(p.getFilesDir().getAbsolutePath());
freeSdcard = (long)sdcard.getAvailableBlocks() * sdcard.getBlockSize() / 1024 / 1024;
freePhone = (long)phone.getAvailableBlocks() * phone.getBlockSize() / 1024 / 1024;
StatFs sdcard = new StatFs(Settings.SdcardAppPath.get().bestPath(p));
freeSdcard = (long)sdcard.getAvailableBlocks() * sdcard.getBlockSize() / 1024 / 1024;
}
catch(Exception e) {}