Browse Source

Merge branch 'switchCamera_fix' of https://github.com/lukeswitz/haven into lukeswitz-switchCamera_fix

n8fr8 7 months ago
parent
commit
424d715c1c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/org/havenapp/main/ui/CameraConfigureActivity.java

+ 1 - 1
src/main/java/org/havenapp/main/ui/CameraConfigureActivity.java

@@ -101,7 +101,7 @@ public class CameraConfigureActivity extends AppCompatActivity {
101 101
         else if (camera.equals(PreferenceManager.BACK))
102 102
             mPrefManager.setCamera(PreferenceManager.FRONT);
103 103
 
104
-        ((CameraFragment) getSupportFragmentManager().findFragmentById(R.id.fragment_camera)).updateCamera();
104
+        mFragment.updateCamera();
105 105
         setResult(RESULT_OK);
106 106
     }
107 107