Use dialog fragment to select colors

This commit is contained in:
M66B
2019-06-30 16:55:15 +02:00
parent d2b0cba6a6
commit 0f7f0e1ad3
13 changed files with 359 additions and 267 deletions

View File

@@ -19,7 +19,6 @@ package eu.faircode.email;
Copyright 2018-2019 by Marcel Bokhorst (M66B)
*/
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
@@ -49,6 +48,8 @@ import com.google.android.material.snackbar.Snackbar;
import java.util.Objects;
import static android.app.Activity.RESULT_OK;
public class FragmentFolder extends FragmentBase {
private ViewGroup view;
private ScrollView scroll;
@@ -242,7 +243,7 @@ public class FragmentFolder extends FragmentBase {
switch (requestCode) {
case REQUEST_SAVE_CHANGES:
if (resultCode == Activity.RESULT_OK) {
if (resultCode == RESULT_OK) {
new Handler().post(new Runnable() {
@Override
public void run() {
@@ -255,7 +256,7 @@ public class FragmentFolder extends FragmentBase {
break;
case REQUEST_DELETE_FOLDER:
if (resultCode == Activity.RESULT_OK)
if (resultCode == RESULT_OK)
onDelete();
break;
}