Skip to content

Commit

Permalink
update readme, remove old images
Browse files Browse the repository at this point in the history
and properly close stream
  • Loading branch information
Helium314 committed Feb 14, 2024
1 parent daa20a1 commit 161409a
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* Allow loading Glide typing library
* not included in the app, as there is no compatible open source library
* can be extracted from GApps packages ("_swypelibs_"), or downloaded [here](https://github.com/erkserkserks/openboard/tree/master/app/src/main/jniLibs)
* if you are concerned about security implications of loading user-provides libraries, please use the _nouserlib_ build variant, which removes this option. If HeliBoard is installed as system app, and _swypelibs_ are available for the system, they will be used.
* Multilingual typing
* Load external dictionaries
* get them [here](https://codeberg.org/Helium314/aosp-dictionaries#dictionaries), or in the [experimental](https://codeberg.org/Helium314/aosp-dictionaries#experimental-dictionaries) section (quality may vary)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public static String expectedDefaultChecksum() {
// 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());
Expand Down
Binary file removed images/feature.png
Binary file not shown.
Binary file removed images/feature.xcf
Binary file not shown.
Binary file removed images/matrix_qr.png
Binary file not shown.
Binary file removed images/open_board_final.png
Binary file not shown.
Binary file removed images/open_board_final.psd
Binary file not shown.

0 comments on commit 161409a

Please sign in to comment.