Commit 89abb5d5 authored by DNLDsht's avatar DNLDsht

clean

parent 89944b78
......@@ -11,7 +11,6 @@ apply plugin: 'com.android.application'
repositories {
jcenter()
maven { url "http://repo1.maven.org/maven2" }
maven { url "http://jitpack.io" }
}
android {
......@@ -41,28 +40,18 @@ android {
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:+'
compile 'com.android.support:cardview-v7:+'
compile 'com.android.support:recyclerview-v7:+'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.4.1'
compile 'com.android.support:design:+'
compile 'com.android.support:palette-v7:+'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:palette-v7:23.1.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.android.support:support-v4:+'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.koushikdutta.ion:ion:2.1.7'
compile('com.mikepenz:materialdrawer:4.6.4@aar') {
transitive = true
}
compile ('com.mikepenz:materialdrawer:4.6.4@aar') { transitive = true }
compile 'com.mikepenz:iconics-core:2.5.5@aar'
compile 'com.mikepenz:google-material-typeface:2.1.0.1.original@aar'
compile 'com.mikepenz:fontawesome-typeface:4.5.0.1@aar'
/*compile('com.github.afollestad.material-dialogs:core:0.8.5.3@aar') {
transitive = true
}
compile('com.github.afollestad.material-dialogs:commons:0.8.5.3@aar') {
transitive = true
}*/
compile 'com.github.paolorotolo:appintro:3.4.0'
}
......@@ -85,7 +85,7 @@ public class AlbumsAdapter extends RecyclerView.Adapter<AlbumsAdapter.ViewHolder
else
holder.card_layout.setBackgroundColor(holder.card_layout.getContext().getColor(R.color.background_material_light));
}
if (selected==false) {
if (!selected) {
holder.name.setText(Html.fromHtml("<i><font color='" + textColor + "'>" + a.DisplayName + "</font></i>"));
holder.nPhotos.setText(Html.fromHtml("<b><font color='" + SP.getString("PrefColor", "#03A9F4") + "'>" + a.getImagesCount() + "</font></b>" + "<font " +
"color='" + textColor + "'> Photos</font>"));
......
......@@ -89,7 +89,7 @@ public class PhotosAdapter extends RecyclerView.Adapter<PhotosAdapter.ViewHolder
public void removeItemAt(int pos) {
//Log.wtf("asdasd",getItemCount()+"");
// photos.remove(pos);
//photos.remove(pos);
//notifyItemRemoved(pos);
//Log.wtf("asdasd",getItemCount()+"");
// notifyDataSetChanged();
......
......@@ -74,7 +74,7 @@ public class ImageFragment extends Fragment {
Glide.with(container.getContext())
.load(path)
.asBitmap()
//.diskCacheStrategy(DiskCacheStrategy.ALL)
.diskCacheStrategy(DiskCacheStrategy.ALL)
.priority(Priority.IMMEDIATE)
.dontAnimate()
.override(width, height)
......@@ -96,11 +96,13 @@ public class ImageFragment extends Fragment {
//Log.wtf("asdasdasdasdas","fulllllllll");
// Glide.get(getActivity()).clearDiskCache();
Glide.get(getActivity()).clearMemory();
// Glide.get(getActivity()).trimMemory(3);
Glide.with(getContext())
.load(path)
.asBitmap()
.skipMemoryCache(true)
// .thumbnail(0.1f)
.skipMemoryCache(true)
//.skipMemoryCache(true)
.priority(Priority.IMMEDIATE)
//.diskCacheStrategy(DiskCacheStrategy.NONE)
......
......@@ -15,6 +15,5 @@ buildscript {
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment