Skip to content

Commit

Permalink
Merge pull request #37 from amarradi/development
Browse files Browse the repository at this point in the history
final pr
  • Loading branch information
amarradi authored Apr 9, 2024
2 parents 2f77284 + 5a9ba0c commit 5e16f97
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ android {
applicationId "com.git.amarradi.leafpad"
minSdkVersion 25
targetSdkVersion 34
versionCode 10
versionCode 11
versionName "1.9"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/com/git/amarradi/leafpad/Leaf.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class Leaf {
private final static String CREATEDATE = "note_date_";
private final static String TITLE_PREFIX = "note_title_";
private final static String BODY_PREFIX = "note_body_";
private final static String CREATETIME = "note_time_";
// private final static String CREATETIME = "note_time_";


public static ArrayList<Note> loadAll(Context context) {
Expand Down Expand Up @@ -79,8 +79,8 @@ public static Note load(SharedPreferences sharedPreferences, String noteId) {
String noteDate = sharedPreferences.getString(ADDDATE+ noteId,"");
String noteTime = sharedPreferences.getString(ADDTIME + noteId,"");
String noteCreateDate = sharedPreferences.getString(CREATEDATE+ noteId,"");
String noteCreateTime = sharedPreferences.getString(CREATETIME+noteId,"");
return new Note(title, body, noteDate, noteTime, noteCreateDate, noteCreateTime, noteId);
//String noteCreateTime = sharedPreferences.getString(CREATETIME+noteId,"");
return new Note(title, body, noteDate, noteTime, noteCreateDate, /*noteCreateTime,*/ noteId);
}

@SuppressLint("MutatingSharedPrefs")
Expand Down
13 changes: 7 additions & 6 deletions app/src/main/java/com/git/amarradi/leafpad/Note.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class Note {
private String notedate;
private String notetime;
private String create_date;
private String create_time;
// private String create_time;
private final String id;

private final Locale LOCALE = Locale.GERMAN;
Expand All @@ -23,13 +23,13 @@ public class Note {
this.id = makeId();
}*/

public Note(String title, String body, String notedate, String notetime, String create_date, String create_time, String id) {
public Note(String title, String body, String notedate, String notetime, String create_date, String id) {
this.title = title;
this.body = body;
this.notedate = notedate;
this.notetime = notetime;
this.create_date = create_date;
this.create_time = create_time;
// this.create_time = create_time;
this.id = id;

}
Expand Down Expand Up @@ -63,12 +63,13 @@ public void setCreateDate(){
df = new SimpleDateFormat("dd.MM.yyyy", LOCALE);
this.create_date = df.format(new Date());
}

/*
public void setCreateTime() {
SimpleDateFormat df;
df = new SimpleDateFormat("HH:mm", LOCALE);
this.create_time = df.format(new Date());
}
*/

public String getBody() {
return body;
Expand All @@ -89,11 +90,11 @@ public String getTime() {
public String getCreateDate() {
return create_date;
}

/*
public String getCreateTime() {
return create_time;
}

*/

public String getId() {
return id;
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:text="@string/leafpad_work"/>


</LinearLayout>
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<string name="what_is_leafpad">Leafpad ist eine einfache App zum Schreiben von Notizen. Mit dieser App kann man auf seinem Telefon Noitzen erstellen, bearbeiten, versenden oder löschen.</string>
<string name="leafpad_work">Leafpad speichert alle Daten lokal auf deinem Smartphone. Die Notizen oder die Metadaten wie Datum und Uhrzeit werden in keiner Cloud abgelegt und mit niemandem geteilt. Es wird auch keine Textanalyse durchgeführt. Die Notizen gehören dir. Du entscheidest, was du damit machst.</string>
<string name="rev20_12">Vor dem Thron aber sah ich die Toten stehen, vom Größten bis zum Kleinsten. Es wurden Bücher aufgeschlagen, in denen alle Taten aufgeschrieben sind, und dann noch ein anderes Buch: das Buch des Lebens. Anschließend wurde Gericht über die Toten gehalten. Jeder bekam das Urteil, das seinen Taten entsprach. Offenbarung des Johannes 20 Vers 12</string>
<string name="statement">Wir notieren uns Einkauflisten, Gesprächsnotizen, Packlisten für den Urlaub oder Geburtstage von Freunden. Das sind alles gute Dinge um sie nicht zu vergessen. Die schlechten Dinge wie zum Beispiel böse Gedanken, notieren wir selbstverständlich nicht, weil wir nicht möchten, dass sie jemals ans Tageslicht kommen. Bei Gott ist das ganz anders. Er schreibt alles mit. Nach unserem Tod stehen wir vor unserem Schöpfer und dann werden alle Dinge offenbar, die guten und die schlechten. Die Menschen, die im Buch des Lebens eintragen sind, haben dann nichts zu befürchten. Bist du im Buch des Lebens eingetragen?</string>
<string name="statement">Wir notieren uns Einkauflisten, Gesprächsnotizen, Packlisten für den Urlaub oder Geburtstage von Freunden. Das sind alles gute Dinge um sie nicht zu vergessen. Bei Gott ist das ganz anders, er weiß alles, das Gute und das Schlechte, auch ohne leafpad. Gott liebt den Menschen und möchte Gemeinschaft mit ihm. Nach unserem Tod stehen wir vor ihm und dann werden alle Dinge im Gericht Gottes offenbar, die Guten und die Schlechten. Die Menschen, die im Buch des Lebens eintragen sind, haben dann nichts zu befürchten. Bist du im Buch des Lebens eingetragen?</string>
<string name="rating_the_app">Bewertung im PlayStore</string>
<string name="its_opensource">Leafpad ist OpenSource und es ist frei</string>
<string name="find_code_on_github">GitHub</string>
Expand All @@ -63,4 +63,6 @@
<string name="licence">Open source Lizenzen</string>
<string name="share_note">Notiz teilen</string>
<string name="note_will_be_saved_first">Notiz wird erst gespeichert</string>
<string name="thanks">Danke Stefan für das Testen der App</string>

</resources>
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
<string name="what_is_leafpad">Leafpad is a simple app for taking notes.</string>
<string name="leafpad_work">Leafpad saves all data locally on your smartphone. The notes or metadata such as date and time are not stored in any cloud and are not shared with anyone. No text analysis is carried out either. The notes belong to you. You decide what you do with them.</string>
<string name="rev20_12">And I saw the dead, the great and the small, standing before the throne; and books were opened: and another book was opened, which is the book of life: and the dead were judged out of the things which were written in the books, according to their works. Revelation 20:12</string>
<string name="statement">We make a note of shopping lists, conversation notes, packing lists for holidays or friends\' birthdays. These are all good things so that we don\'t forget them. Of course, we don\'t write down the bad things, such as bad thoughts, because we don\'t want them to ever come to light. It\'s completely different with God. He writes everything down. After our death, we stand before our Creator and then all things are revealed, the good and the bad. People who are registered in the Book of Life have nothing to fear. Are you registered in the Book of Life?</string>
<string name="statement">We make a note of shopping lists, conversation notes, packing lists for holidays or friends\' birthdays. These are all good things so that we don\'t forget them. With God it\'s completely different, he knows everything, the good and the bad, even without a leafpad. God loves people and wants to have fellowship with them. After our death we stand before him and then all things will be revealed in God\'s judgement, the good and the bad. People who are registered in the Book of Life have nothing to fear. Are you registered in the Book of Life?</string>
<string name="thanks">Thanks Stefan for testing the app</string>
<string name="rating_the_app">Rating on PlayStore</string>
<string name="its_opensource">Leafpad is OpenSource and its free</string>
<string name="find_code_on_github">GitHub</string>
Expand Down

0 comments on commit 5e16f97

Please sign in to comment.