Skip to content

Commit f7647a3

Browse files
committed
Visual Updates
Updates some visual effects and offset items
1 parent feb4125 commit f7647a3

22 files changed

Lines changed: 105 additions & 66 deletions

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/deploymentTargetDropDown.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ dependencies {
7474
implementation 'com.google.firebase:firebase-analytics'
7575
implementation 'com.google.firebase:firebase-firestore'
7676
implementation 'com.google.firebase:firebase-storage'
77+
implementation 'com.google.firebase:firebase-auth'
78+
79+
7780
//photo view
7881
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
7982

app/release/app-release.aab

8.84 MB
Binary file not shown.

app/release/app-release.apk

9.94 MB
Binary file not shown.

app/release/output-metadata.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"version": 3,
3+
"artifactType": {
4+
"type": "APK",
5+
"kind": "Directory"
6+
},
7+
"applicationId": "com.btn.pronotes",
8+
"variantName": "release",
9+
"elements": [
10+
{
11+
"type": "SINGLE",
12+
"filters": [],
13+
"attributes": [],
14+
"versionCode": 1,
15+
"versionName": "1.0",
16+
"outputFile": "app-release.apk"
17+
}
18+
],
19+
"elementType": "File"
20+
}

app/src/main/java/com/btn/pronotes/Database/MainDAO.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public interface MainDAO {
3434
@Query("DELETE FROM notes ")
3535
void deleteAllNotes();
3636

37+
//Delete All Folders
38+
@Query("DELETE FROM folder")
39+
void deleteAllFolders();
40+
3741
//Update Items
3842
@Query("UPDATE notes SET title = :title, notes = :notes WHERE ID =:id")
3943
void update(int id, String title, String notes);

app/src/main/java/com/btn/pronotes/Database/RoomDB.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
package com.btn.pronotes.Database;
22

33
import android.content.Context;
4+
import android.view.MenuItem;
45

56
import androidx.annotation.NonNull;
7+
import androidx.appcompat.widget.PopupMenu;
8+
import androidx.cardview.widget.CardView;
69
import androidx.room.Database;
710
import androidx.room.Room;
811
import androidx.room.RoomDatabase;
912
import androidx.room.migration.Migration;
1013
import androidx.sqlite.db.SupportSQLiteDatabase;
1114

15+
import com.btn.pronotes.FolderActivity;
16+
import com.btn.pronotes.MainActivity;
1217
import com.btn.pronotes.Models.Folder;
1318
import com.btn.pronotes.Models.Media;
1419
import com.btn.pronotes.Models.Notes;
20+
import com.btn.pronotes.R;
1521

1622
import java.util.concurrent.Executors;
1723

@@ -33,7 +39,7 @@ public void onCreate(@NonNull SupportSQLiteDatabase db) {
3339
Executors.newSingleThreadScheduledExecutor().execute(new Runnable() {
3440
@Override
3541
public void run() {
36-
database.mainDAO().insertFolder(new Folder("All"));
42+
database.mainDAO().insertFolder(new Folder("All Notes"));
3743
}
3844
});
3945
}
@@ -58,7 +64,5 @@ public void migrate(@NonNull SupportSQLiteDatabase database) {
5864
database.execSQL("ALTER TABLE notes ADD COLUMN folderId INTEGER NOT NULL DEFAULT 0");
5965
}
6066
};
61-
62-
63-
public abstract MainDAO mainDAO();
64-
}
67+
public abstract MainDAO mainDAO ();
68+
}

app/src/main/java/com/btn/pronotes/FolderActivity.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66

77
import androidx.appcompat.app.AlertDialog;
88
import androidx.appcompat.app.AppCompatActivity;
9+
import androidx.cardview.widget.CardView;
910

1011
import android.content.Intent;
1112
import android.os.Bundle;
13+
import android.view.KeyEvent;
14+
import android.widget.PopupMenu;
1215

1316
import com.btn.pronotes.Adapters.FolderListAdapter;
1417
import com.btn.pronotes.Database.RoomDB;

0 commit comments

Comments
 (0)