mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 21:58:52 +02:00
Switched to AndroidX libraries
This commit is contained in:
@@ -21,8 +21,6 @@ package eu.faircode.email;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
@@ -37,6 +35,9 @@ import java.util.concurrent.Executors;
|
||||
import javax.mail.Address;
|
||||
import javax.mail.internet.InternetAddress;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
public class FragmentAbout extends FragmentEx {
|
||||
private ExecutorService executor = Executors.newCachedThreadPool();
|
||||
|
||||
@@ -65,14 +66,14 @@ public class FragmentAbout extends FragmentEx {
|
||||
StringBuilder info = Helper.getDebugInfo();
|
||||
info.insert(0, getString(R.string.title_debug_info_remark) + "\n\n\n\n");
|
||||
|
||||
Address to = new InternetAddress("marcel+email@faircode.eu" , "FairCode");
|
||||
Address to = new InternetAddress("marcel+email@faircode.eu", "FairCode");
|
||||
|
||||
EntityMessage draft = new EntityMessage();
|
||||
draft.account = drafts.account;
|
||||
draft.folder = drafts.id;
|
||||
draft.to = new Address[]{to};
|
||||
draft.subject = BuildConfig.APPLICATION_ID + " debug info";
|
||||
draft.body = "<pre>" + info.toString().replaceAll("\\r?\\n" , "<br />") + "</pre>";
|
||||
draft.body = "<pre>" + info.toString().replaceAll("\\r?\\n", "<br />") + "</pre>";
|
||||
draft.received = new Date().getTime();
|
||||
draft.seen = false;
|
||||
draft.ui_seen = false;
|
||||
@@ -83,7 +84,7 @@ public class FragmentAbout extends FragmentEx {
|
||||
EntityOperation.process(getContext());
|
||||
|
||||
startActivity(new Intent(getContext(), ActivityCompose.class)
|
||||
.putExtra("id" , draft.id));
|
||||
.putExtra("id", draft.id));
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
Log.w(Helper.TAG, ex + "\n" + Log.getStackTraceString(ex));
|
||||
|
||||
Reference in New Issue
Block a user