mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 05:52:47 +00:00
update readme, remove old images
and properly close stream
This commit is contained in:
parent
daa20a1c2c
commit
161409a73e
7 changed files with 4 additions and 1 deletions
|
@ -66,7 +66,9 @@ public final class JniUtils {
|
|||
// if device is locked, this will throw an IllegalStateException
|
||||
wantedChecksum = PreferenceManager.getDefaultSharedPreferences(app).getString(Settings.PREF_LIBRARY_CHECKSUM, wantedChecksum);
|
||||
}
|
||||
final String checksum = ChecksumCalculator.INSTANCE.checksum(new FileInputStream(userSuppliedLibrary));
|
||||
final FileInputStream libStream = new FileInputStream(userSuppliedLibrary);
|
||||
final String checksum = ChecksumCalculator.INSTANCE.checksum(libStream);
|
||||
libStream.close();
|
||||
if (TextUtils.equals(wantedChecksum, checksum)) {
|
||||
// try loading the library
|
||||
System.load(userSuppliedLibrary.getAbsolutePath());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue