From f705e13d0ba379e1105efefbdb220730190fa569 Mon Sep 17 00:00:00 2001 From: Christian Basler Date: Wed, 27 Apr 2016 17:30:05 +0200 Subject: [PATCH] Fixed notification and made code slightly simpler --- app/src/main/AndroidManifest.xml | 2 +- .../apps/abit/notification/ProofOfWorkNotification.java | 6 ++++-- .../ch/dissem/apps/abit/service/ProofOfWorkService.java | 8 +------- app/src/main/res/values-de/strings.xml | 4 +++- app/src/main/res/values/strings.xml | 4 +++- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f97947c..a868652 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -48,7 +48,7 @@ queue = new LinkedList<>(); private static ProofOfWorkNotification notification; @Override public void onCreate() { - synchronized (lock) { - if (engine == null) { - engine = new MultiThreadedPOWEngine(); - } - } notification = new ProofOfWorkNotification(this); } diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 76473aa..95d73b8 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -42,7 +42,8 @@ Stream %1$d: %2$d Verbindungen Getrennt Verbindung wird aufgebaut… - Arbeite am Versenden (%1$d in Warteschlange) + Arbeite am Versenden + Arbeite am Versenden (%1$d in Warteschlange) Proof of Work Synchronisation fehlgeschlagen: der vertrauenswürdige Knoten konnte nicht erreicht werden. Ungültiger Port in den Synchronisationseinstellungen: %s @@ -73,4 +74,5 @@ Als Alternative kann in den Einstellungen ein vertrauenswürdiger Knoten konfigu Vielleicht hat es einen Tippfehler Exportieren Identität wirklich exportieren? Der Export wird die privaten Schlüssel unverschlüsselt enthalten. + Schreiben \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9bd6afc..49e4b52 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -44,7 +44,8 @@ Disconnected Connecting… Proof of Work - Doing work to send message (%1$d queued) + Doing work to send message + Doing work to send message (%1$d queued) Invalid port in synchronization settings: %s Synchronization failed: Trusted node could not be reached. Write message @@ -76,4 +77,5 @@ As an alternative you could configure a trusted node in the settings, but as of There might be a typo Export Do you really want to export your identity? The export will contain the unencrypted private keys. + Compose