Add javadoc links.

This commit is contained in:
akwizgran
2018-02-22 15:23:49 +00:00
parent 66e3f6deba
commit 06897569d4
2 changed files with 7 additions and 0 deletions

View File

@@ -223,6 +223,9 @@ public class CameraView extends SurfaceView implements SurfaceHolder.Callback,
} }
} }
/**
* See {@link Camera#setDisplayOrientation(int)}.
*/
@UiThread @UiThread
private void setDisplayOrientation(int rotationDegrees) private void setDisplayOrientation(int rotationDegrees)
throws CameraException { throws CameraException {

View File

@@ -2,6 +2,7 @@ package org.briarproject.briar.android.keyagreement;
import android.content.Context; import android.content.Context;
import android.graphics.Bitmap; import android.graphics.Bitmap;
import android.hardware.Camera;
import android.os.AsyncTask; import android.os.AsyncTask;
import android.os.Bundle; import android.os.Bundle;
import android.support.annotation.UiThread; import android.support.annotation.UiThread;
@@ -147,6 +148,9 @@ public class ShowQrCodeFragment extends BaseEventFragment
startListening(); startListening();
} }
/**
* See {@link Camera#setDisplayOrientation(int)}.
*/
private int getScreenRotationDegrees() { private int getScreenRotationDegrees() {
Display d = getActivity().getWindowManager().getDefaultDisplay(); Display d = getActivity().getWindowManager().getDefaultDisplay();
switch (d.getRotation()) { switch (d.getRotation()) {