Skip to content

Commit

Permalink
feat: add widget description
Browse files Browse the repository at this point in the history
  • Loading branch information
callasio committed Oct 2, 2024
1 parent da24ede commit 425cf6d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/time_table_widget_info" />
android:resource="@xml/next_lecture_widget_info" />
</receiver>

<activity
Expand Down
6 changes: 3 additions & 3 deletions android/app/src/main/java/org/sparcs/otlplus/api/Data.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ object Data { // TODO: Get data using api
get() = "다음주 월요일"

val nextLectureName
get() = "그래프이론 개론"
get() = "일반물리학"

val nextLecturePlace
get() = "(E2)산업경영학동1225"
get() = "(E11)창의학습관 311"

val nextLectureProfessor
get() = "김재훈"
get() = "김교수"
}
1 change: 1 addition & 0 deletions android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<string name="appwidget_text">EXAMPLE</string>
<string name="add_widget">Add widget</string>
<string name="app_widget_description">This is an app widget description</string>
<string name="next_lecture_widget_description">다음 강의의 세부 정보를 확인하세요.</string>
<string name="next_lecture">다음 강의</string>
<string name="next_lecture_date_preview">6시간 뒤</string>
<string name="next_lecture_place_preview">교양분관</string>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/app_widget_description"
android:description="@string/next_lecture_widget_description"
android:initialKeyguardLayout="@layout/next_lecture_widget"
android:initialLayout="@layout/next_lecture_widget"
android:minWidth="40dp"
Expand Down

0 comments on commit 425cf6d

Please sign in to comment.