Skip to content

Commit 24f0c3b

Browse files
authored
Updates (#14)
- Add Upload Shortcut - Revert Theme Settings - Update Intent Handling
1 parent cefc00e commit 24f0c3b

File tree

12 files changed

+153
-138
lines changed

12 files changed

+153
-138
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
android:configChanges="orientation|smallestScreenSize|screenSize|screenLayout|keyboardHidden"
2222
android:launchMode="singleTask">
2323

24+
<meta-data
25+
android:name="android.app.shortcuts"
26+
android:resource="@xml/shortcuts" />
27+
2428
<intent-filter>
2529
<action android:name="android.intent.action.MAIN" />
2630
<category android:name="android.intent.category.LAUNCHER" />

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

Lines changed: 118 additions & 124 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import com.djangofiles.djangofiles.settings.ServerDao
1010
import com.djangofiles.djangofiles.settings.ServerDatabase
1111

1212

13+
@Suppress("unused")
1314
class WebAppInterface(private var context: Context) {
1415
companion object {
1516
private const val PREFS_NAME = "AppPreferences"
File renamed without changes.

app/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
android:layout_height="match_parent">
1313

1414
<WebView
15-
android:id="@+id/webview"
15+
android:id="@+id/web_view"
1616
android:layout_width="match_parent"
1717
android:layout_height="match_parent" />
1818

app/src/main/res/layout/nav_header_main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="136dp"
7-
android:background="@drawable/side_nav_bar"
7+
android:background="@drawable/nav_header_bg"
88
android:gravity="center_vertical"
99
android:orientation="horizontal"
1010
android:paddingStart="24dp"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="primary">#FF565AA9</color>
4+
</resources>

app/src/main/res/values-night/themes.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

app/src/main/res/values/colors.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<color name="primary">#FF565AA9</color>
4-
<color name="primary_light">#FFD6D7EE</color>
3+
<color name="primary">#FFD6D7EE</color>
54
</resources>

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@
1717
<string name="tst_perm_failed">Unable to Grant Permissions!</string>
1818
<string name="tst_uploading_file">Uploading File. Please Wait.</string>
1919
<string name="django_files">Django Files</string>
20+
<string name="upload_short">Upload</string>
21+
<string name="upload_long">Upload File</string>
2022
</resources>

0 commit comments

Comments
 (0)