Skip to content

Commit

Permalink
Release version 1.0.7 (Version Code 9)
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsFo committed Oct 21, 2018
1 parent ab68361 commit 49d6d32
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 60 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "de.nilsfo.lsn"
minSdkVersion 17
targetSdkVersion 26
versionCode 8
versionName "1.0.6"
versionCode 9
versionName "1.0.7"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,12 @@ public boolean onPreferenceClick(Preference preference) {
public boolean onPreferenceClick(Preference preference) {
ClipboardManager clipboard = (ClipboardManager) preference.getContext().getSystemService(Context.CLIPBOARD_SERVICE);
ClipData clip = ClipData.newPlainText(getString(R.string.app_name), getString(R.string.const_github_update_feed_url));
clipboard.setPrimaryClip(clip);
Toast.makeText(preference.getContext(), R.string.action_github_url_success, Toast.LENGTH_LONG).show();

if (clipboard != null) {
clipboard.setPrimaryClip(clip);
Toast.makeText(preference.getContext(), R.string.action_github_url_success, Toast.LENGTH_LONG).show();
}else{
Toast.makeText(preference.getContext(),R.string.error_clipboard_unavailable,Toast.LENGTH_LONG).show();
}
return true;
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.widget.Toast;

import java.util.Calendar;

import de.nilsfo.lockscreennotes.LockScreenNotes;
import de.nilsfo.lockscreennotes.receiver.LSNAutoBackupReceiver;
import de.nilsfo.lockscreennotes.util.TimeUtils;
import timber.log.Timber;
Expand All @@ -19,6 +17,7 @@

public class LSNAlarmManager {

public static final int AUTO_BACKUP_SCHEDULE_HOUR = 3;
private Context context;
private AlarmManager alarmManager;

Expand Down Expand Up @@ -52,9 +51,9 @@ public void scheduleNextAutoBackup() {
Timber.i("Scheduling next alarm at " + triggerTime + ". That's: " + formatedDebugTimestamp);
Timber.i("Repeating every " + interval + "ms. That should be every " + days + " day(s).");

if (LockScreenNotes.isDebugBuild()) {
Toast.makeText(context, "Debug: Backup Scheduler set up for: " + formatedDebugTimestamp + ". Cycle days: " + days, Toast.LENGTH_LONG).show();
}
//if (LockScreenNotes.isDebugBuild()) {
// Toast.makeText(context, "Debug: Backup Scheduler set up for: " + formatedDebugTimestamp + ". Cycle days: " + days, Toast.LENGTH_LONG).show();
//}

alarmManager.setInexactRepeating(AlarmManager.RTC, triggerTime, interval, intent);
}
Expand All @@ -68,11 +67,10 @@ private PendingIntent getAutoBackupIntent() {
public long getTimeUntilNextNewAutoBackup() {
Calendar c = Calendar.getInstance();
c.add(Calendar.DAY_OF_MONTH, 1);
c.set(Calendar.HOUR_OF_DAY, 2);
c.set(Calendar.HOUR_OF_DAY, AUTO_BACKUP_SCHEDULE_HOUR);
c.set(Calendar.MINUTE, 0);
c.set(Calendar.SECOND, 0);
c.set(Calendar.MILLISECOND, 0);
return (c.getTimeInMillis() - System.currentTimeMillis());
}

}
40 changes: 21 additions & 19 deletions app/src/main/res/raw-de/version_changelog.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
{
"8":{
"date":"19.08.2018",
"version":"1.06",
"text":"-[Android 7+] Android 7 Benachrichtigungs-Stil wird nun unterstützt.\n-Notizen können nun über die Benachrichtigungen deaktiviert werden\n-Externen Aktualisierungs-Feed hinzugefügt, für den Fall, dass Sie Ihre Aktualisierungen nicht über Google Play beziehen möchten. Details in dem 'Über' Bereich in den Einstellungen.\n-Ein Zähler zeigt an wie lange das letzte Update her ist\n-System Einstellungen für Benachrichtigungen nun über die App verfügbar\n-Backups können nun über das Hauptmenü erstellt und importiert werden\n-Sprachdateien aktualisiert"
"9": {
"date": "21.10.2018",
"version": "1.07",
"text": "-[Android 7+] Android 7 Benachrichtigungs-Kanäle werden nun unterstützt\n-Tippen auf Benachrichtigungen einzelner Notizen öffnet die App um diese zu bearbeiten\n-Wenn eine Notiz einen einzelnen Link enthält, kann dieser direkt aus der Benachrichtigung geöffnet werden\n-Backups können nun (via Einstellungen) in regelmäßigen Zeitabständen automatisiert durchgeführt werden\n-Texte in den Einstellungen überarbeitet\n-Angepeilte Android version aktualisiert\n-Dialog Icons aktualisiert\n-Sprachdateien aktualisiert"
},

"7":{
"date":"06.12.2017",
"version":"1.05",
"text":"-Reihenfolge der Notizen stimmt mit der der App überein\n-Weblinks und URLs in einer Notiz können nun von der App aus geöffnet werden\n-Verbesserungen an den Icons\n-App stürzt nicht mehr ab wenn QR-Codes von leeren Notizen erstellt werden"
"8": {
"date": "19.08.2018",
"version": "1.06",
"text": "-[Android 7+] Android 7 Benachrichtigungs-Stil wird nun unterstützt.\n-Notizen können nun über die Benachrichtigungen deaktiviert werden\n-Externen Aktualisierungs-Feed hinzugefügt, für den Fall, dass Sie Ihre Aktualisierungen nicht über Google Play beziehen möchten. Details in dem 'Über' Bereich in den Einstellungen.\n-Ein Zähler zeigt an wie lange das letzte Update her ist\n-System Einstellungen für Benachrichtigungen nun über die App verfügbar\n-Backups können nun über das Hauptmenü erstellt und importiert werden\n-Sprachdateien aktualisiert"
},

"6":{
"date":"27.07.2017",
"version":"1.04",
"text":"-Als QR-Code dargestellte Notizen können nun mit anderen Apps geteilt werden\n-Diesen Dialog hinzugefügt um über Updates & Verbesserungen zu informieren. Dieser Changelog kann in der 'Über'-Sektion der Einstellungen erneut angesehen werden\n-Die Reihenfolge in der Erinnerungen angezeigt werden kann nun umgekehrt werden\nIn den Einstellungen: Die Kategorie 'Benachrichtigungen' heißt nun 'Erinnerungen'\n-Kleinere Verbesserungen und Fehlerbehebungen"
"7": {
"date": "06.12.2017",
"version": "1.05",
"text": "-Reihenfolge der Notizen stimmt mit der der App überein\n-Weblinks und URLs in einer Notiz können nun von der App aus geöffnet werden\n-Verbesserungen an den Icons\n-App stürzt nicht mehr ab wenn QR-Codes von leeren Notizen erstellt werden"
},

"5":{
"date":"17.05.2017",
"version":"1.03",
"text":"-'fontawesome'-Icons ersetzt mit Material-Design-Icons\n-Mehr Icons im Options-Menü\n-Notizen können nun als QR Code angezeigt werden\n-Kleinere Verbesserungen und Fehlerbehebungen"
"6": {
"date": "27.07.2017",
"version": "1.04",
"text": "-Als QR-Code dargestellte Notizen können nun mit anderen Apps geteilt werden\n-Diesen Dialog hinzugefügt um über Updates & Verbesserungen zu informieren. Dieser Changelog kann in der 'Über'-Sektion der Einstellungen erneut angesehen werden\n-Die Reihenfolge in der Erinnerungen angezeigt werden kann nun umgekehrt werden\nIn den Einstellungen: Die Kategorie 'Benachrichtigungen' heißt nun 'Erinnerungen'\n-Kleinere Verbesserungen und Fehlerbehebungen"
},
"5": {
"date": "17.05.2017",
"version": "1.03",
"text": "-'fontawesome'-Icons ersetzt mit Material-Design-Icons\n-Mehr Icons im Options-Menü\n-Notizen können nun als QR Code angezeigt werden\n-Kleinere Verbesserungen und Fehlerbehebungen"
}
}
44 changes: 20 additions & 24 deletions app/src/main/res/raw/version_changelog.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
{
"9":{
"date":"19.08.2018",
"version":"1.07",
"text":"-[Android 7+] Added support for Android 7 notification channels\nTapping on a notification now opens the assigned note\n-If a note contains a single weblink, it can now be opened from the notification\n-Backups can now be scheduled automatically (via the settings menu)\n-Updated some descriptions in the settings menu\n-Targeting a later Android version to comply with new PlayStore policies\n-Updated dialog icons\n-Updated localization files"
"9": {
"date": "21.10.2018",
"version": "1.07",
"text": "-[Android 7+] Added support for Android 7 notification channels\n-Tapping on a notification now opens the assigned note\n-If a note contains a single weblink, it can now be opened from the notification\n-Backups can now be scheduled automatically (via the settings menu)\n-Updated some texts in the settings menu\n-Updated targeted Android version\n-Updated dialog icons\n-Updated localization files"
},

"8":{
"date":"19.08.2018",
"version":"1.06",
"text":"-[Android 7+] Added support for Android 7 notification styles. Try it out by using grouped notifications and expand one at a time.\nAdded a 'disable note' button for notifications\n-Added an external update feed, in case you don't want to get update news from Google Play. See the 'About' section in the settings for details.\n-Added a counter that counts the days since the last app update\n-System notification settings available from within the app\n-Backups can be made and restored from within the main screen\n-Updated localization files"
"8": {
"date": "19.08.2018",
"version": "1.06",
"text": "-[Android 7+] Added support for Android 7 notification styles. Try it out by using grouped notifications and expand one at a time.\nAdded a 'disable note' button for notifications\n-Added an external update feed, in case you don't want to get update news from Google Play. See the 'About' section in the settings for details.\n-Added a counter that counts the days since the last update\n-System notification settings available from within the app\n-Backups can be made and restored from within the main screen\n-Updated localization files"
},

"7":{
"date":"06.12.2017",
"version":"1.05",
"text":"-Arrangement of notes in the notification and app now match correctly\n-Weblinks and URLs within notes can now be browsed from within this app\n-Updated notification bar icon\n-Fixed a crash when trying to generate QR codes from empty notes"
"7": {
"date": "06.12.2017",
"version": "1.05",
"text": "-Arrangement of notes in the notification and app now match correctly\n-Weblinks and URLs within notes can now be browsed from within this app\n-Updated notification bar icon\n-Fixed a crash when trying to generate QR codes from empty notes"
},

"6":{
"date":"27.07.2017",
"version":"1.04",
"text":"-Notes displayed as QR codes can now be shared with other apps\n-Added this dialog to keep you informed about changes and new features. You can view this changelog again in the 'about' section in the app settings!\n-The order of all displayed notifications can reversed\n-Minor improvements and bug fixes"
"6": {
"date": "27.07.2017",
"version": "1.04",
"text": "-Notes displayed as QR codes can now be shared with other apps\n-Added this dialog to keep you informed about changes and new features. You can view this changelog again in the 'about' section in the app settings!\n-The order of all displayed notifications can reversed\n-Minor improvements and bug fixes"
},

"5":{
"date":"17.05.2017",
"version":"1.03",
"text":"-Replaced 'fontawesome'-icons with material-design icons\n-Added more icons to the options menu\n-Notes can now be displayed as a QR Code\n-Minor improvements and bug fixes"
"5": {
"date": "17.05.2017",
"version": "1.03",
"text": "-Replaced 'fontawesome'-icons with material-design icons\n-Added more icons to the options menu\n-Notes can now be displayed as a QR Code\n-Minor improvements and bug fixes"
}
}
10 changes: 9 additions & 1 deletion app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,13 @@
<string name="notification_auto_backup_failed">Automatisches Backup fehlgeschlagen</string>
<string name="error_no_external_storage">Die App hat keinen Zugriff auf den externen Speicher.</string>
<string name="error_no_old_backup_files_deleted">Aber es konnten keine alten Backups gelöscht werden!</string>
<string name="notification_auto_backup_file_count">Gesamte Backups: %1$s.</string>
<string name="delete_dialog_content_multiple">Sollen diese %1$s Notizen wirklich gelöscht werden?</string>
<string name="notification_auto_backup_next_detail">%1$s\nBackups bisher angelegt: %2$s.</string>
<string name="notification_auto_backup_next">Nächstes Backup: %1$s.</string>
<string name="error_clipboard_unavailable">Fehler: Zwischenablage-Service ist auf diesem Gerät nicht verfügbar.</string>
<string name="error_keyboard_unavailable">Fehler: Virtuelle Tastatur ist auf diesem Gerät nicht verfügbar.</string>
<string name="action_browse">Öffnen</string>
<string name="action_shortcut_add">Neue Notiz</string>
<string name="action_shortcut_general_error">Diese Aktion ist nicht länger unterstützt.</string>
<string name="action_shortcut_add_long">Eine neue Notiz anlegen</string>
</resources>
6 changes: 3 additions & 3 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,14 @@
<string name="notification_auto_backup_failed">Automatic backup failed</string>
<string name="error_no_external_storage">Failed to obtain permissions to access the external storage.</string>
<string name="error_no_old_backup_files_deleted">But failed to delete old backup files!</string>
<string name="notification_auto_backup_next_detail">%1$s.\nTotal backups: %2$s.</string>
<string name="notification_auto_backup_next_detail">%1$s\nTotal backups: %2$s.</string>
<string name="notification_auto_backup_next">Next backup: %1$s.</string>
<string name="error_clipboard_unavailable">Error: Clipboard service not available on this device.</string>
<string name="error_keyboard_unavailable">Error: Virtual keyboard not available on this device.</string>
<string name="action_browse">Browse</string>
<string name="action_shortcut_add">New note</string>
<string name="action_shortcut_add_id">add_new</string>
<string name="action_shortcut_add_id" translatable="false">add_new</string>
<string name="action_shortcut_general_error">This action is no longer supported.</string>
<string name="action_shortcut_add_long">Create a new note</string>
<string name="lipsum">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</string>
<string name="lipsum" translatable="false">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</string>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/xml/prefs_auto_backup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/>

<EditTextPreference
android:defaultValue="3"
android:defaultValue="4"
android:dependency="pref_auto_backups_enabled"
android:inputType="number"
android:singleLine="true"
Expand Down

0 comments on commit 49d6d32

Please sign in to comment.