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

Commit 75b662aa authored by Michael W's avatar Michael W
Browse files

LineageParts: Cleanup comments

* Remove dangling javadoc
* Remove commented code
* Fix typos

Change-Id: Ib849572c112084f107a11eae4a0eeda2746daac5
parent 7ea7576b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/**
 * Copyright (C) 2018 The LineageOS Project
/*
 * Copyright (C) 2018-2022 The LineageOS Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
+9 −8
Original line number Diff line number Diff line
/*******************************************************************************
/*
 * Copyright 2011, 2012 Chris Banes.
 * Copyright (C) 2015 The CyanogenMod Project
 * Copyright (C) 2022 The LineageOS Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -13,7 +14,7 @@
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *******************************************************************************/
 */

package org.lineageos.lineageparts.contributors;

@@ -126,11 +127,11 @@ public class ContributorsCloudViewController implements View.OnTouchListener,
     * Set's the ImageView's ScaleType to Matrix.
     */
    private static void setImageViewScaleTypeMatrix(ImageView imageView) {
        /**
        /*
         * PhotoView sets it's own ScaleType to Matrix, then diverts all calls
         * setScaleType to this.setScaleType automatically.
         */
        if (null != imageView /*&& !(imageView instanceof IPhotoView)*/) {
        if (null != imageView) {
            if (!ScaleType.MATRIX.equals(imageView.getScaleType())) {
                imageView.setScaleType(ScaleType.MATRIX);
            }
@@ -450,7 +451,7 @@ public class ContributorsCloudViewController implements View.OnTouchListener,
        mSuppMatrix.postTranslate(dx, dy);
        checkAndDisplayMatrix();

        /**
        /*
         * Here we decide whether to let the ImageView's parent to start taking
         * over the touch event.
         *
@@ -500,7 +501,7 @@ public class ContributorsCloudViewController implements View.OnTouchListener,
                final int bottom = imageView.getBottom();
                final int left = imageView.getLeft();

                /**
                /*
                 * We need to check whether the ImageView's bounds have changed.
                 * This would be easier if we targeted API 11+ as we could just use
                 * View.OnLayoutChangeListener. Instead we have to replicate the
@@ -750,7 +751,7 @@ public class ContributorsCloudViewController implements View.OnTouchListener,
    private void checkImageViewScaleType() {
        ImageView imageView = getImageView();

        /**
        /*
         * PhotoView's getScaleType() will just divert to this.getScaleType() so
         * only call if we're not attached to a PhotoView.
         */
+1 −2
Original line number Diff line number Diff line
/*
 * Copyright (C) 2010 The Android Open Source Project
 * Copyright (C) 2017 The LineageOS Project
 * Copyright (C) 2017-2022 The LineageOS Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -92,7 +92,6 @@ public class OctopusDrawable extends Drawable {
    public void setSizePx(int size) {
        mSizePx = size;
        M.setScale(mSizePx / BASE_SCALE, mSizePx / BASE_SCALE);
        // TaperedPathStroke.setMinStep(20f*BASE_SCALE/mSizePx); // nice little floaty circles
        TaperedPathStroke.setMinStep(8f * BASE_SCALE / mSizePx); // classic tentacles
        M.invert(M_inv);
    }
+2 −2
Original line number Diff line number Diff line
/**
/*
 * Copyright (C) 2016 The CyanogenMod Project
 *               2017 The LineageOS Project
 *               2017-2022 The LineageOS Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
+2 −2
Original line number Diff line number Diff line
/**
/*
 * Copyright (C) 2016 The CyanogenMod project
 *               2017,2019-2020 The LineageOS Project
 *               2017,2019-2022 The LineageOS Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
Loading