Prechádzať zdrojové kódy

Remove unused class

Signed-off-by: Joris Bodin <joris.bodin@infomaniak.com>
Joris Bodin 5 rokov pred
rodič
commit
4491f9a40d

+ 0 - 44
src/main/java/com/owncloud/android/ui/SquareImageView.java

@@ -1,44 +0,0 @@
-/**
- * ownCloud Android client application
- *
- * Copyright (C) 2015 ownCloud Inc.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-package com.owncloud.android.ui;
-
-import android.content.Context;
-import android.util.AttributeSet;
-
-import androidx.appcompat.widget.AppCompatImageView;
-
-public class SquareImageView extends AppCompatImageView {
-
-    public SquareImageView(Context context) {
-        super(context);
-    }
-
-    public SquareImageView(Context context, AttributeSet attrs) {
-        super(context, attrs);
-    }
-
-    public SquareImageView(Context context, AttributeSet attrs, int defStyle) {
-        super(context, attrs, defStyle);
-    }
-
-    @Override
-    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
-        super.onMeasure(widthMeasureSpec, widthMeasureSpec);
-    }
-}

+ 1 - 1
src/main/res/layout/grid_image.xml

@@ -29,7 +29,7 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content">
 
-        <com.owncloud.android.ui.SquareImageView
+        <ImageView
             android:id="@+id/thumbnail"
             android:layout_width="match_parent"
             android:layout_height="match_parent"

+ 2 - 2
src/main/res/layout/grid_sync_item.xml

@@ -27,7 +27,7 @@
     android:background="@drawable/list_selector"
     android:gravity="center_horizontal">
 
-    <com.owncloud.android.ui.SquareImageView
+    <ImageView
         android:id="@+id/thumbnail"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
@@ -69,4 +69,4 @@
             android:textSize="@dimen/grid_sync_item_layout_counter_text_size"
             android:textStyle="bold"/>
     </LinearLayout>
-</FrameLayout>
+</FrameLayout>