Commit be055ceb authored by Donald's avatar Donald

fix

parent 10c48442
......@@ -3,6 +3,7 @@ package com.leafpic.app;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.NonNull;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
......@@ -140,11 +141,12 @@ public class PhotoActivity extends AppCompatActivity {
getWindow().setStatusBarColor(getColor(R.color.transparent_gray));
/**** Navigation Bar */
getWindow().setNavigationBarColor(getColor(R.color.transparent_gray));
new Thread(new Runnable() {
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
public void run() {
hideSystemUI();
}
}).start();
}, 150);
}
private void toggleSystemUI() {
......@@ -156,6 +158,8 @@ public class PhotoActivity extends AppCompatActivity {
private void hideSystemUI() {
runOnUiThread(new Runnable() {
public void run() {
toolbar.animate().translationY(-toolbar.getHeight()).setInterpolator(new AccelerateInterpolator())
.start();
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
......@@ -163,8 +167,7 @@ public class PhotoActivity extends AppCompatActivity {
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar
| View.SYSTEM_UI_FLAG_FULLSCREEN // hide status bar
| View.SYSTEM_UI_FLAG_IMMERSIVE);
toolbar.animate().translationY(-toolbar.getHeight()).setInterpolator(new AccelerateInterpolator())
.start();
fullscreenmode = true;
}
});
......
......@@ -256,9 +256,10 @@ public class PhotosActivity extends AppCompatActivity {
.input(null, photos.DisplayName, new MaterialDialog.InputCallback() {
@Override
public void onInput(MaterialDialog dialog, CharSequence input) {
/* albums.renameAlbum(photos.FolderPath, input.toString());
finish();// TODO make this better*/
/* TODO make this better
albums.renameAlbum(photos.FolderPath, input.toString());
finish();
*/
string.showToast(getApplicationContext(), "I have to fix this!");
}
}).show();
......@@ -273,10 +274,7 @@ public class PhotosActivity extends AppCompatActivity {
@Override
public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
customAlbumsHandler.excludeAlbum(photos.ID);
customAlbumsHandler.LogEXCLUDEALBUMS();
//string.showToast(getApplicationContext(), "Not implemented yet!");
//albums.excludeAlbum(photos.FolderPath);
//finish();
finish();
}
})
.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