diff --git a/app/src/main/java/com/nextcloud/ui/SquareLoaderImageView.java b/app/src/main/java/com/nextcloud/ui/SquareLoaderImageView.kt similarity index 55% rename from app/src/main/java/com/nextcloud/ui/SquareLoaderImageView.java rename to app/src/main/java/com/nextcloud/ui/SquareLoaderImageView.kt index 217ef9a3c817..0677d145b28c 100644 --- a/app/src/main/java/com/nextcloud/ui/SquareLoaderImageView.java +++ b/app/src/main/java/com/nextcloud/ui/SquareLoaderImageView.kt @@ -17,32 +17,21 @@ * You should have received a copy of the GNU Affero General Public * License along with this program. If not, see . */ +package com.nextcloud.ui -package com.nextcloud.ui; - -import android.content.Context; -import android.util.AttributeSet; - -import com.elyeproj.loaderviewlibrary.LoaderImageView; +import android.content.Context +import android.util.AttributeSet +import com.elyeproj.loaderviewlibrary.LoaderImageView /** * Square version of loader image. */ -class SquareLoaderImageView extends LoaderImageView { - public SquareLoaderImageView(Context context) { - super(context); - } - - public SquareLoaderImageView(Context context, AttributeSet attrs) { - super(context, attrs); - } - - public SquareLoaderImageView(Context context, AttributeSet attrs, int defStyle) { - super(context, attrs, defStyle); - } +internal class SquareLoaderImageView : LoaderImageView { + constructor(context: Context?) : super(context) + constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) + constructor(context: Context?, attrs: AttributeSet?, defStyle: Int) : super(context, attrs, defStyle) - @Override - protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { - super.onMeasure(widthMeasureSpec, widthMeasureSpec); + override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { + super.onMeasure(widthMeasureSpec, widthMeasureSpec) } }