Skip to content

Commit

Permalink
version 0.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dnldsht committed May 26, 2016
1 parent 3afc211 commit dd6e84e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
19 changes: 13 additions & 6 deletions app/src/main/java/com/horaapps/leafpic/SelectAlbumBottomSheet.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@
import android.app.Dialog;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.Environment;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomSheetBehavior;
import android.support.design.widget.BottomSheetDialogFragment;
import android.support.design.widget.CoordinatorLayout;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.LinearLayout;
Expand Down Expand Up @@ -138,7 +141,7 @@ public void onClick(View v) {
llNewFolder.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
newFolderDialog();
//newFolderDialog();
}
});

Expand Down Expand Up @@ -182,15 +185,17 @@ public void onClick(View v) {
private void newFolderDialog() {
Toast.makeText(getContext(),"New Folder",Toast.LENGTH_SHORT).show();

/*

root = new File(Environment.getExternalStorageDirectory().getAbsolutePath());
curFolder=root;
ListDir(curFolder);
Dialog dialog= new Dialog(getContext());

final AlertDialog.Builder deleteDialog = new AlertDialog.Builder(getContext(),
R.style.AlertDialog_Light);

Dialog dialog = new Dialog(getContext());
dialog.setContentView(R.layout.dialog_explorer);
dialog.setTitle("Dialog Explorer");
dialog.setCancelable(true);
dialog.setCanceledOnTouchOutside(true);

textFolder = (TextView) dialog.findViewById(R.id.folder);
btnUP = (Button) dialog.findViewById(R.id.up);
Expand All @@ -202,6 +207,7 @@ public void onClick(View v){
});

dialog_ListView = (ListView) dialog.findViewById(R.id.folder_list);

dialog_ListView.setOnItemClickListener(new AdapterView.OnItemClickListener(){
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Expand All @@ -214,10 +220,11 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id)
}
}
});
*/

}

void ListDir(File f){

if(f.equals(root)){
btnUP.setEnabled(false);
} else {
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/ll_more_options_theme"
android:visibility="gone"
android:visibility="visible"
android:orientation="vertical">
<!-- TRASLUCENT STATUS BAR-->
<LinearLayout
Expand Down Expand Up @@ -591,6 +591,7 @@
android:theme="@style/ThemeOverlay.AppCompat.Light"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginTop="11dp"
android:visibility="gone"
android:layout_marginBottom="0dp"
app:elevation="5dp"
/>
Expand Down

0 comments on commit dd6e84e

Please sign in to comment.