mirror of
https://github.com/olgamiller/SSTVEncoder2.git
synced 2026-04-05 14:25:41 +00:00
Replaced reflection method getConstructor with getDeclaredConstructor
(Was not functioning on a sony phone with Android version 5.1.1.)
This commit is contained in:
parent
eefa55bb6d
commit
c14af42222
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ public final class ModeFactory {
|
|||
|
||||
if (bitmap.getWidth() == size.width() && bitmap.getHeight() == size.height()) {
|
||||
try {
|
||||
Constructor constructor = modeClass.getConstructor(Bitmap.class, IOutput.class);
|
||||
Constructor constructor = modeClass.getDeclaredConstructor(Bitmap.class, IOutput.class);
|
||||
mode = (Mode) constructor.newInstance(bitmap, output);
|
||||
} catch (Exception ignore) {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue