Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 860007b3 authored by Mark Harman's avatar Mark Harman
Browse files

Ignore some warnings.

parent 988bce72
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1891,6 +1891,7 @@ public class MyApplicationInterface extends BasicApplicationInterface {
        if( MyDebug.LOG )
            Log.d(TAG, "setNextPanoramaPoint : " + x + " , " + y + " , " + z);

        @SuppressWarnings("PointlessArithmeticExpression")
        final float target_angle = 1.0f * 0.01745329252f;
        //final float target_angle = 0.5f * 0.01745329252f;
        final float upright_angle_tol = 2.0f * 0.017452406437f;
+1 −0
Original line number Diff line number Diff line
@@ -247,6 +247,7 @@ public class DrawPreview {
        p.setTypeface(Typeface.create(Typeface.DEFAULT, Typeface.BOLD));
        p.setStrokeCap(Paint.Cap.ROUND);
        scale = getContext().getResources().getDisplayMetrics().density;
        //noinspection PointlessArithmeticExpression
        this.stroke_width = (1.0f * scale + 0.5f); // convert dps to pixels
        p.setStrokeWidth(this.stroke_width);

+4 −1
Original line number Diff line number Diff line
@@ -1123,7 +1123,10 @@ public class MainUI {

    }

    public void onOrientationChanged(int orientation) {
    // ParameterCanBeLocal warning suppressed as it's incorrect here! (Or
    // possibly it's due to effect of MainActivity.lock_to_landscape always
    // being false.)
    public void onOrientationChanged(@SuppressWarnings("ParameterCanBeLocal") int orientation) {
		/*if( MyDebug.LOG ) {
			Log.d(TAG, "onOrientationChanged()");
			Log.d(TAG, "orientation: " + orientation);
+1 −0
Original line number Diff line number Diff line
@@ -884,6 +884,7 @@ public class UnitTest {
        List<HDRProcessor.LuminanceInfo> luminanceInfos = new ArrayList<>();
        List<HDRProcessor.LuminanceInfo> luminanceInfosSorted;

        //noinspection RedundantOperationOnEmptyContainer
        luminanceInfos.clear();
        luminanceInfos.add(new HDRProcessor.LuminanceInfo(0, 64, 255, false));
        luminanceInfos.add(new HDRProcessor.LuminanceInfo(16, 80, 255, false));