|
|
|
@ -23,6 +23,8 @@ import android.content.ClipboardManager;
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
import android.content.DialogInterface;
|
|
|
|
|
import android.content.Intent;
|
|
|
|
|
import android.content.SharedPreferences;
|
|
|
|
|
import android.graphics.Typeface;
|
|
|
|
|
import android.graphics.drawable.Drawable;
|
|
|
|
|
import android.net.Uri;
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
@ -44,6 +46,7 @@ import android.widget.TextView;
|
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
|
import androidx.annotation.Nullable;
|
|
|
|
|
import androidx.appcompat.app.AlertDialog;
|
|
|
|
|
import androidx.preference.PreferenceManager;
|
|
|
|
|
|
|
|
|
|
import com.google.android.material.bottomnavigation.BottomNavigationView;
|
|
|
|
|
import com.google.android.material.snackbar.Snackbar;
|
|
|
|
@ -64,6 +67,9 @@ public class ActivitySignature extends ActivityBase {
|
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
|
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
|
|
|
|
boolean monospaced = prefs.getBoolean("monospaced", false);
|
|
|
|
|
|
|
|
|
|
getSupportActionBar().setSubtitle(getString(R.string.title_edit_signature));
|
|
|
|
|
|
|
|
|
|
LayoutInflater inflater = LayoutInflater.from(this);
|
|
|
|
@ -74,6 +80,8 @@ public class ActivitySignature extends ActivityBase {
|
|
|
|
|
style_bar = findViewById(R.id.style_bar);
|
|
|
|
|
bottom_navigation = findViewById(R.id.bottom_navigation);
|
|
|
|
|
|
|
|
|
|
etText.setTypeface(monospaced ? Typeface.MONOSPACE : Typeface.DEFAULT);
|
|
|
|
|
|
|
|
|
|
etText.setSelectionListener(new EditTextCompose.ISelection() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onSelected(boolean selection) {
|
|
|
|
|