mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Use dialog fragment to select colors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user