mirror of
https://github.com/olgamiller/SSTVEncoder2.git
synced 2025-12-06 06:52:01 +01: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
|
|
@ -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…
Reference in a new issue