Skip to content

Commit

Permalink
set orientationhack values after the active camera got set
Browse files Browse the repository at this point in the history
  • Loading branch information
KillerInk committed Dec 13, 2020
1 parent e691ea8 commit 1dfba1c
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ public void detect()
//publishProgress("#####CameraID:"+cameraids.get(c)+"####");
//publishProgress("###################");
//publishProgress("Check camera features:" + cameraids.get(c));
SettingsManager.get(SettingKeys.orientationHack).setValues(new String[]{"0","90","180","270"});
SettingsManager.get(SettingKeys.orientationHack).set("0");
SettingsManager.get(SettingKeys.orientationHack).setIsSupported(true);


CameraCharacteristics characteristics = null;
try {
Expand All @@ -179,6 +177,10 @@ public void detect()

//SettingsManager.getInstance().SetCurrentCamera(Integer.parseInt(s));
SettingsManager.getInstance().SetCurrentCamera(c);

SettingsManager.get(SettingKeys.orientationHack).setValues(new String[]{"0","90","180","270"});
SettingsManager.get(SettingKeys.orientationHack).set("0");
SettingsManager.get(SettingKeys.orientationHack).setIsSupported(true);
//AUX Camera WIDE
/* switch (characteristics.get(CameraCharacteristics.LENS_FACING))
{
Expand Down

0 comments on commit 1dfba1c

Please sign in to comment.