Skip to content

Commit

Permalink
FIX gradle repos
Browse files Browse the repository at this point in the history
FIX some lint issues
MOD disable abort on error for lint issues
  • Loading branch information
sth-tractive committed Jan 5, 2018
1 parent eaf32c3 commit c05fa80
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
buildscript {
repositories {
jcenter()
google()

}
dependencies {
Expand All @@ -15,9 +16,7 @@ buildscript {
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}
google()
}

}
Expand Down
3 changes: 3 additions & 0 deletions tedbottompicker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ public GalleryViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {

@Override
public void onBindViewHolder(final GalleryViewHolder holder, final int position) {
final int adapterPosition = holder.getAdapterPosition();

PickerTile pickerTile = getItem(position);
PickerTile pickerTile = getItem(adapterPosition);


if (pickerTile.isCameraTile()) {
Expand Down Expand Up @@ -133,7 +134,7 @@ public void onBindViewHolder(final GalleryViewHolder holder, final int position)
holder.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
onItemClickListener.onItemClick(holder.itemView, position);
onItemClickListener.onItemClick(holder.itemView, adapterPosition);
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.support.v7.content.res.AppCompatResources;
import android.support.v7.widget.AppCompatImageView;
import android.util.AttributeSet;
import android.widget.ImageView;

Expand All @@ -14,7 +15,7 @@
/**
* Created by Gil on 09/06/2014.
*/
public class TedSquareImageView extends ImageView {
public class TedSquareImageView extends AppCompatImageView {

String fit_mode;
private Drawable foreground;
Expand Down

0 comments on commit c05fa80

Please sign in to comment.