Commit f268f39d authored by Donald's avatar Donald

clean

parent ea34c439
......@@ -11,7 +11,7 @@ import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.leafpic.app.Album;
import com.leafpic.app.Base.Album;
import com.leafpic.app.R;
import java.util.ArrayList;
......
......@@ -9,7 +9,7 @@ import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.koushikdutta.ion.Ion;
import com.leafpic.app.Photo;
import com.leafpic.app.Base.Photo;
import com.leafpic.app.R;
import java.util.ArrayList;
......
......@@ -12,7 +12,7 @@ import com.bumptech.glide.request.target.SimpleTarget;
import com.davemorrissey.labs.subscaleview.ImageSource;
import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView;
import com.koushikdutta.ion.Ion;
import com.leafpic.app.Photo;
import com.leafpic.app.Base.Photo;
import com.leafpic.app.R;
import java.util.ArrayList;
......
......@@ -13,21 +13,18 @@ import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.PopupMenu;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.support.v7.widget.*;
import android.view.Gravity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import com.afollestad.materialdialogs.DialogAction;
import com.afollestad.materialdialogs.MaterialDialog;
import com.leafpic.app.Adapters.AlbumsAdapter;
import com.leafpic.app.Base.Album;
import com.leafpic.app.Base.HandlingAlbums;
import com.leafpic.app.Base.MadiaStoreHandler;
import com.leafpic.app.utils.string;
import com.mikepenz.fontawesome_typeface_library.FontAwesome;
......
package com.leafpic.app;
package com.leafpic.app.Base;
import android.os.Parcel;
import android.os.Parcelable;
import com.leafpic.app.R;
import com.leafpic.app.utils.string;
import java.util.ArrayList;
......
package com.leafpic.app;
package com.leafpic.app.Base;
import android.content.Context;
import android.media.MediaScannerConnection;
import android.net.Uri;
import com.leafpic.app.Base.HiddenPhotosHandler;
import com.leafpic.app.Base.MadiaStoreHandler;
import com.leafpic.app.utils.string;
import java.io.File;
......
package com.leafpic.app;
package com.leafpic.app.Base;
import android.content.Context;
import android.os.Parcel;
import android.os.Parcelable;
import com.leafpic.app.Base.HiddenPhotosHandler;
import com.leafpic.app.Base.MadiaStoreHandler;
import java.io.File;
import java.util.ArrayList;
......@@ -13,7 +11,7 @@ import java.util.ArrayList;
* Created by dnld on 1/4/16.
*/
class HandlingPhotos implements Parcelable {
public class HandlingPhotos implements Parcelable {
@SuppressWarnings("unused")
public static final Parcelable.Creator<HandlingPhotos> CREATOR = new Parcelable.Creator<HandlingPhotos>() {
......@@ -31,9 +29,9 @@ class HandlingPhotos implements Parcelable {
public String DisplayName;
public ArrayList<Photo> photos;
public ArrayList<Photo> selectedPhotos;
public boolean hidden;
Context context;
MadiaStoreHandler as;
boolean hidden;
private int current;
private int last_position_selecte = -1;
......
......@@ -6,8 +6,6 @@ import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.os.Environment;
import com.leafpic.app.Album;
import com.leafpic.app.Photo;
import com.leafpic.app.utils.string;
import java.io.File;
......
......@@ -4,8 +4,6 @@ import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.provider.MediaStore;
import com.leafpic.app.Album;
import com.leafpic.app.Photo;
import java.util.ArrayList;
......
package com.leafpic.app;
package com.leafpic.app.Base;
import android.os.Parcel;
import android.os.Parcelable;
......
......@@ -6,7 +6,6 @@ import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.widget.Toast;
import com.github.paolorotolo.appintro.AppIntro;
import com.github.paolorotolo.appintro.AppIntroFragment;
......@@ -15,6 +14,7 @@ import com.github.paolorotolo.appintro.AppIntroFragment;
*/
public class IntroActivity extends AppIntro {
int slide=1;
@Override
public void init(Bundle savedInstanceState) {
......
......@@ -14,6 +14,7 @@ import com.afollestad.materialdialogs.DialogAction;
import com.afollestad.materialdialogs.MaterialDialog;
import com.leafpic.app.Adapters.PhotosPagerAdapter;
import com.leafpic.app.Animations.DepthPageTransformer;
import com.leafpic.app.Base.HandlingPhotos;
import com.leafpic.app.utils.string;
/**
......
......@@ -31,6 +31,10 @@ import com.afollestad.materialdialogs.DialogAction;
import com.afollestad.materialdialogs.MaterialDialog;
import com.bumptech.glide.Glide;
import com.leafpic.app.Adapters.PhotosAdapter;
import com.leafpic.app.Base.Album;
import com.leafpic.app.Base.HandlingAlbums;
import com.leafpic.app.Base.HandlingPhotos;
import com.leafpic.app.Base.Photo;
import java.io.File;
import java.util.ArrayList;
......
package com.leafpic.app;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;
/**
* Created by dnld on 1/26/16.
*/
public class PhotosReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Log.wtf("receiver_photo", "asdasdasd");
Toast.makeText(context, "New Photo is Saved as : -", Toast.LENGTH_LONG).show();
/*Cursor cursor = context.getContentResolver().query(intent.getData(), null,null, null, null);
cursor.moveToFirst();
String image_path = cursor.getString(cursor.getColumnIndex("_data"));
Toast.makeText(context, "New Photo is Saved as : -" + image_path, Toast.LENGTH_LONG).show();
*/
}
}
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