|
|
@ -59,6 +59,7 @@ import java.util.Objects;
|
|
|
|
|
|
|
|
|
|
|
|
public class ActivitySignature extends ActivityBase {
|
|
|
|
public class ActivitySignature extends ActivityBase {
|
|
|
|
private ViewGroup view;
|
|
|
|
private ViewGroup view;
|
|
|
|
|
|
|
|
private TextView tvHtmlRemark;
|
|
|
|
private EditTextCompose etText;
|
|
|
|
private EditTextCompose etText;
|
|
|
|
private BottomNavigationView style_bar;
|
|
|
|
private BottomNavigationView style_bar;
|
|
|
|
private BottomNavigationView bottom_navigation;
|
|
|
|
private BottomNavigationView bottom_navigation;
|
|
|
@ -81,6 +82,7 @@ public class ActivitySignature extends ActivityBase {
|
|
|
|
view = (ViewGroup) inflater.inflate(R.layout.activity_signature, null, false);
|
|
|
|
view = (ViewGroup) inflater.inflate(R.layout.activity_signature, null, false);
|
|
|
|
setContentView(view);
|
|
|
|
setContentView(view);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tvHtmlRemark = findViewById(R.id.tvHtmlRemark);
|
|
|
|
etText = findViewById(R.id.etText);
|
|
|
|
etText = findViewById(R.id.etText);
|
|
|
|
style_bar = findViewById(R.id.style_bar);
|
|
|
|
style_bar = findViewById(R.id.style_bar);
|
|
|
|
bottom_navigation = findViewById(R.id.bottom_navigation);
|
|
|
|
bottom_navigation = findViewById(R.id.bottom_navigation);
|
|
|
@ -176,6 +178,7 @@ public class ActivitySignature extends ActivityBase {
|
|
|
|
|
|
|
|
|
|
|
|
// Initialize
|
|
|
|
// Initialize
|
|
|
|
FragmentDialogTheme.setBackground(this, view, true);
|
|
|
|
FragmentDialogTheme.setBackground(this, view, true);
|
|
|
|
|
|
|
|
tvHtmlRemark.setVisibility(View.GONE);
|
|
|
|
style_bar.setVisibility(View.GONE);
|
|
|
|
style_bar.setVisibility(View.GONE);
|
|
|
|
|
|
|
|
|
|
|
|
setResult(RESULT_CANCELED, new Intent());
|
|
|
|
setResult(RESULT_CANCELED, new Intent());
|
|
|
@ -279,6 +282,7 @@ public class ActivitySignature extends ActivityBase {
|
|
|
|
String html = (dirty
|
|
|
|
String html = (dirty
|
|
|
|
? getHtml()
|
|
|
|
? getHtml()
|
|
|
|
: getIntent().getStringExtra("html"));
|
|
|
|
: getIntent().getStringExtra("html"));
|
|
|
|
|
|
|
|
tvHtmlRemark.setVisibility(raw ? View.VISIBLE : View.GONE);
|
|
|
|
etText.setRaw(raw);
|
|
|
|
etText.setRaw(raw);
|
|
|
|
etText.setTypeface(raw ? Typeface.MONOSPACE : Typeface.DEFAULT);
|
|
|
|
etText.setTypeface(raw ? Typeface.MONOSPACE : Typeface.DEFAULT);
|
|
|
|
load(html);
|
|
|
|
load(html);
|
|
|
|