Skip to content

Commit 931158f

Browse files
authored
Improve State and Intent Handling (#11)
1 parent 8b87558 commit 931158f

File tree

9 files changed

+129
-82
lines changed

9 files changed

+129
-82
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ dependencies {
4545
implementation(libs.androidx.appcompat)
4646
implementation(libs.material)
4747
implementation(libs.androidx.activity)
48-
implementation(libs.okhttp)
4948
implementation(libs.androidx.preference.ktx)
49+
implementation(libs.okhttp)
5050
implementation(libs.room.ktx)
5151
implementation(libs.room.runtime)
5252
ksp(libs.room.compiler)

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
android:name=".MainActivity"
1919
android:exported="true"
2020
android:windowSoftInputMode="adjustResize"
21-
android:configChanges="orientation|smallestScreenSize|screenSize|screenLayout|keyboardHidden">
21+
android:configChanges="orientation|smallestScreenSize|screenSize|screenLayout|keyboardHidden"
22+
android:launchMode="singleTask">
2223

2324
<intent-filter>
2425
<action android:name="android.intent.action.MAIN" />

app/src/main/java/com/djangofiles/djangofiles/MainActivity.kt

Lines changed: 120 additions & 66 deletions
Large diffs are not rendered by default.

app/src/main/res/drawable/fa_gears.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2-
android:width="30dp"
2+
android:width="24dp"
33
android:height="24dp"
44
android:viewportWidth="640"
55
android:viewportHeight="512">

app/src/main/res/drawable/fa_house_laptop.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2-
android:width="30dp"
2+
android:width="24dp"
33
android:height="24dp"
44
android:viewportWidth="640"
55
android:viewportHeight="512">

app/src/main/res/drawable/fa_link.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2-
android:width="30dp"
2+
android:width="24dp"
33
android:height="24dp"
44
android:viewportWidth="640"
55
android:viewportHeight="512">

app/src/main/res/drawable/fa_trash_can.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2-
android:width="21dp"
2+
android:width="24dp"
33
android:height="24dp"
44
android:viewportWidth="448"
55
android:viewportHeight="512">

app/src/main/res/menu/drawer_menu.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
android:id="@+id/nav_item_home"
77
android:icon="@drawable/fa_house_laptop"
88
android:title="Home" />
9-
<!-- <item-->
10-
<!-- android:id="@+id/nav_item_upload_file"-->
11-
<!-- android:icon="@drawable/fa_upload"-->
12-
<!-- android:title="Upload Files" />-->
13-
<!-- <item-->
14-
<!-- android:id="@+id/nav_item_upload_text"-->
15-
<!-- android:icon="@drawable/fa_file_lines"-->
16-
<!-- android:title="Upload Text" />-->
179
<item
1810
android:id="@+id/nav_item_files"
1911
android:icon="@drawable/fa_folder_open"

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ espressoCore = "3.6.1"
88
appcompat = "1.7.0"
99
material = "1.12.0"
1010
activity = "1.10.1"
11-
okhttp = "4.12.0"
1211
preferenceKtx = "1.2.1"
12+
okhttp = "4.12.0"
1313
room = "2.6.1"
1414
ksp = "2.1.20-1.0.32"
1515
#roomRuntime = "2.6.1"
@@ -25,8 +25,8 @@ androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-co
2525
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
2626
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
2727
androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
28-
okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
2928
androidx-preference-ktx = { group = "androidx.preference", name = "preference-ktx", version.ref = "preferenceKtx" }
29+
okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
3030
room-runtime = { module = "androidx.room:room-runtime", version.ref = "room" }
3131
room-ktx = { module = "androidx.room:room-ktx", version.ref = "room" }
3232
room-compiler = { module = "androidx.room:room-compiler", version.ref = "room" }

0 commit comments

Comments
 (0)