create separate directories for fragments and models

This commit is contained in:
tibbi 2016-06-09 10:29:31 +02:00
parent 73575f8839
commit 3cd30f7f37
11 changed files with 22 additions and 15 deletions

View file

@ -30,7 +30,7 @@ import android.widget.GridView;
import android.widget.Toast; import android.widget.Toast;
import com.simplemobiletools.gallery.Constants; import com.simplemobiletools.gallery.Constants;
import com.simplemobiletools.gallery.Directory; import com.simplemobiletools.gallery.models.Directory;
import com.simplemobiletools.gallery.R; import com.simplemobiletools.gallery.R;
import com.simplemobiletools.gallery.Utils; import com.simplemobiletools.gallery.Utils;
import com.simplemobiletools.gallery.adapters.DirectoryAdapter; import com.simplemobiletools.gallery.adapters.DirectoryAdapter;

View file

@ -28,7 +28,7 @@ import android.widget.GridView;
import android.widget.Toast; import android.widget.Toast;
import com.simplemobiletools.gallery.Constants; import com.simplemobiletools.gallery.Constants;
import com.simplemobiletools.gallery.Medium; import com.simplemobiletools.gallery.models.Medium;
import com.simplemobiletools.gallery.R; import com.simplemobiletools.gallery.R;
import com.simplemobiletools.gallery.Utils; import com.simplemobiletools.gallery.Utils;
import com.simplemobiletools.gallery.adapters.MediaAdapter; import com.simplemobiletools.gallery.adapters.MediaAdapter;

View file

@ -20,7 +20,7 @@ import android.widget.EditText;
import android.widget.RelativeLayout; import android.widget.RelativeLayout;
import com.simplemobiletools.gallery.Constants; import com.simplemobiletools.gallery.Constants;
import com.simplemobiletools.gallery.Medium; import com.simplemobiletools.gallery.models.Medium;
import com.simplemobiletools.gallery.MyViewPager; import com.simplemobiletools.gallery.MyViewPager;
import com.simplemobiletools.gallery.R; import com.simplemobiletools.gallery.R;
import com.simplemobiletools.gallery.Utils; import com.simplemobiletools.gallery.Utils;
@ -43,11 +43,11 @@ public class ViewPagerActivity extends AppCompatActivity
private int pos; private int pos;
private boolean isFullScreen; private boolean isFullScreen;
private boolean isUndoShown;
private ActionBar actionbar; private ActionBar actionbar;
private List<Medium> media; private List<Medium> media;
private String path; private String path;
private String directory; private String directory;
private boolean isUndoShown;
private String toBeDeleted; private String toBeDeleted;
private String beingDeleted; private String beingDeleted;

View file

@ -9,7 +9,7 @@ import android.widget.ImageView;
import android.widget.TextView; import android.widget.TextView;
import com.bumptech.glide.Glide; import com.bumptech.glide.Glide;
import com.simplemobiletools.gallery.Directory; import com.simplemobiletools.gallery.models.Directory;
import com.simplemobiletools.gallery.R; import com.simplemobiletools.gallery.R;
import java.util.List; import java.util.List;

View file

@ -8,7 +8,7 @@ import android.widget.BaseAdapter;
import android.widget.ImageView; import android.widget.ImageView;
import com.bumptech.glide.Glide; import com.bumptech.glide.Glide;
import com.simplemobiletools.gallery.Medium; import com.simplemobiletools.gallery.models.Medium;
import com.simplemobiletools.gallery.R; import com.simplemobiletools.gallery.R;
import java.util.List; import java.util.List;

View file

@ -6,10 +6,10 @@ import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter; import android.support.v4.app.FragmentStatePagerAdapter;
import com.simplemobiletools.gallery.Constants; import com.simplemobiletools.gallery.Constants;
import com.simplemobiletools.gallery.Medium; import com.simplemobiletools.gallery.models.Medium;
import com.simplemobiletools.gallery.PhotoFragment; import com.simplemobiletools.gallery.fragments.PhotoFragment;
import com.simplemobiletools.gallery.VideoFragment; import com.simplemobiletools.gallery.fragments.VideoFragment;
import com.simplemobiletools.gallery.ViewPagerFragment; import com.simplemobiletools.gallery.fragments.ViewPagerFragment;
import java.util.List; import java.util.List;

View file

@ -1,4 +1,4 @@
package com.simplemobiletools.gallery; package com.simplemobiletools.gallery.fragments;
import android.os.Bundle; import android.os.Bundle;
import android.view.LayoutInflater; import android.view.LayoutInflater;
@ -7,6 +7,9 @@ import android.view.ViewGroup;
import com.davemorrissey.labs.subscaleview.ImageSource; import com.davemorrissey.labs.subscaleview.ImageSource;
import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView; import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView;
import com.simplemobiletools.gallery.Constants;
import com.simplemobiletools.gallery.models.Medium;
import com.simplemobiletools.gallery.R;
import com.simplemobiletools.gallery.activities.ViewPagerActivity; import com.simplemobiletools.gallery.activities.ViewPagerActivity;
public class PhotoFragment extends ViewPagerFragment implements View.OnClickListener { public class PhotoFragment extends ViewPagerFragment implements View.OnClickListener {

View file

@ -1,4 +1,4 @@
package com.simplemobiletools.gallery; package com.simplemobiletools.gallery.fragments;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.content.res.Resources; import android.content.res.Resources;
@ -18,7 +18,11 @@ import android.widget.RelativeLayout;
import android.widget.SeekBar; import android.widget.SeekBar;
import android.widget.TextView; import android.widget.TextView;
import com.simplemobiletools.gallery.Constants;
import com.simplemobiletools.gallery.R;
import com.simplemobiletools.gallery.Utils;
import com.simplemobiletools.gallery.activities.ViewPagerActivity; import com.simplemobiletools.gallery.activities.ViewPagerActivity;
import com.simplemobiletools.gallery.models.Medium;
import java.io.IOException; import java.io.IOException;
import java.util.Locale; import java.util.Locale;

View file

@ -1,4 +1,4 @@
package com.simplemobiletools.gallery; package com.simplemobiletools.gallery.fragments;
import android.support.v4.app.Fragment; import android.support.v4.app.Fragment;

View file

@ -1,4 +1,4 @@
package com.simplemobiletools.gallery; package com.simplemobiletools.gallery.models;
public class Directory { public class Directory {
private final String path; private final String path;

View file

@ -1,4 +1,4 @@
package com.simplemobiletools.gallery; package com.simplemobiletools.gallery.models;
import java.io.Serializable; import java.io.Serializable;