mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 04:28:00 +01:00
create separate directories for fragments and models
This commit is contained in:
parent
73575f8839
commit
3cd30f7f37
11 changed files with 22 additions and 15 deletions
|
@ -30,7 +30,7 @@ import android.widget.GridView;
|
|||
import android.widget.Toast;
|
||||
|
||||
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.Utils;
|
||||
import com.simplemobiletools.gallery.adapters.DirectoryAdapter;
|
||||
|
|
|
@ -28,7 +28,7 @@ import android.widget.GridView;
|
|||
import android.widget.Toast;
|
||||
|
||||
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.Utils;
|
||||
import com.simplemobiletools.gallery.adapters.MediaAdapter;
|
||||
|
|
|
@ -20,7 +20,7 @@ import android.widget.EditText;
|
|||
import android.widget.RelativeLayout;
|
||||
|
||||
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.R;
|
||||
import com.simplemobiletools.gallery.Utils;
|
||||
|
@ -43,11 +43,11 @@ public class ViewPagerActivity extends AppCompatActivity
|
|||
|
||||
private int pos;
|
||||
private boolean isFullScreen;
|
||||
private boolean isUndoShown;
|
||||
private ActionBar actionbar;
|
||||
private List<Medium> media;
|
||||
private String path;
|
||||
private String directory;
|
||||
private boolean isUndoShown;
|
||||
private String toBeDeleted;
|
||||
private String beingDeleted;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import android.widget.ImageView;
|
|||
import android.widget.TextView;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.simplemobiletools.gallery.Directory;
|
||||
import com.simplemobiletools.gallery.models.Directory;
|
||||
import com.simplemobiletools.gallery.R;
|
||||
|
||||
import java.util.List;
|
||||
|
|
|
@ -8,7 +8,7 @@ import android.widget.BaseAdapter;
|
|||
import android.widget.ImageView;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.simplemobiletools.gallery.Medium;
|
||||
import com.simplemobiletools.gallery.models.Medium;
|
||||
import com.simplemobiletools.gallery.R;
|
||||
|
||||
import java.util.List;
|
||||
|
|
|
@ -6,10 +6,10 @@ import android.support.v4.app.FragmentManager;
|
|||
import android.support.v4.app.FragmentStatePagerAdapter;
|
||||
|
||||
import com.simplemobiletools.gallery.Constants;
|
||||
import com.simplemobiletools.gallery.Medium;
|
||||
import com.simplemobiletools.gallery.PhotoFragment;
|
||||
import com.simplemobiletools.gallery.VideoFragment;
|
||||
import com.simplemobiletools.gallery.ViewPagerFragment;
|
||||
import com.simplemobiletools.gallery.models.Medium;
|
||||
import com.simplemobiletools.gallery.fragments.PhotoFragment;
|
||||
import com.simplemobiletools.gallery.fragments.VideoFragment;
|
||||
import com.simplemobiletools.gallery.fragments.ViewPagerFragment;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.simplemobiletools.gallery;
|
||||
package com.simplemobiletools.gallery.fragments;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.LayoutInflater;
|
||||
|
@ -7,6 +7,9 @@ import android.view.ViewGroup;
|
|||
|
||||
import com.davemorrissey.labs.subscaleview.ImageSource;
|
||||
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;
|
||||
|
||||
public class PhotoFragment extends ViewPagerFragment implements View.OnClickListener {
|
|
@ -1,4 +1,4 @@
|
|||
package com.simplemobiletools.gallery;
|
||||
package com.simplemobiletools.gallery.fragments;
|
||||
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.Resources;
|
||||
|
@ -18,7 +18,11 @@ import android.widget.RelativeLayout;
|
|||
import android.widget.SeekBar;
|
||||
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.models.Medium;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Locale;
|
|
@ -1,4 +1,4 @@
|
|||
package com.simplemobiletools.gallery;
|
||||
package com.simplemobiletools.gallery.fragments;
|
||||
|
||||
import android.support.v4.app.Fragment;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.simplemobiletools.gallery;
|
||||
package com.simplemobiletools.gallery.models;
|
||||
|
||||
public class Directory {
|
||||
private final String path;
|
|
@ -1,4 +1,4 @@
|
|||
package com.simplemobiletools.gallery;
|
||||
package com.simplemobiletools.gallery.models;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
Loading…
Reference in a new issue