File tree Expand file tree Collapse file tree
java/com/cornellappdev/coursegrab Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,8 +212,7 @@ class MainActivity : AppCompatActivity() {
212212 availableCourses[position].title
213213 )
214214 holder.courseTime.text = availableCourses[position].section.uppercase(getDefault())
215- holder.coursePin.text =
216- context.getString(R .string.course_pin_format, availableCourses[position].catalogNum)
215+ holder.coursePin.text = availableCourses[position].catalogNum.toString()
217216 holder.courseStatus.setImageResource(if (availableCourses[position].isOpen) R .drawable.ic_status_open else R .drawable.ic_status_closed)
218217
219218 holder.removeButton.setOnClickListener {
@@ -268,8 +267,7 @@ class MainActivity : AppCompatActivity() {
268267 awaitingCourses[position].title
269268 )
270269 holder.courseTime.text = awaitingCourses[position].section.uppercase(getDefault())
271- holder.coursePin.text =
272- context.getString(R .string.course_pin_format, awaitingCourses[position].catalogNum)
270+ holder.coursePin.text = awaitingCourses[position].catalogNum.toString()
273271 holder.courseStatus.setImageResource(if (awaitingCourses[position].isOpen) R .drawable.ic_status_open else R .drawable.ic_status_closed)
274272
275273 holder.removeButton.setOnClickListener {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class NotificationModal : AppCompatActivity() {
2828 course.title
2929 )
3030 binding.courseSection.text = course.section
31- binding.coursePin.text = getString( R .string.course_pin_format, course.catalogNum)
31+ binding.coursePin.text = course.catalogNum.toString( )
3232
3333 binding.buttonStudentCenter.setOnClickListener {
3434 val browserIntent =
Original file line number Diff line number Diff line change 6868 android : maxLines =" 2"
6969 android : paddingStart =" 14dp"
7070 android : scrollHorizontally =" true"
71- android : text =" CS 1998: Intro to Android"
71+ tools : text =" CS 1998: Intro to Android"
7272 android : textColor =" @android:color/black"
7373 android : textSize =" 18sp" />
7474
8282 android : fontFamily =" sans-serif-medium"
8383 android : gravity =" bottom"
8484 android : paddingLeft =" 14dp"
85- android : text =" LEC 006 / M 7:30PM"
85+ tools : text =" LEC 006 / M 7:30PM"
8686 android : textSize =" 16sp" />
8787
8888 </LinearLayout >
Original file line number Diff line number Diff line change 8484 android : paddingStart =" 16dp"
8585 android : paddingTop =" 16dp"
8686 android : paddingBottom =" 4dp"
87- android : text =" 0 Available"
87+ tools : text =" 0 Available"
8888 android : textColor =" @color/greenTextColor"
8989 android : textSize =" 20sp" />
9090
115115 android : paddingStart =" 16dp"
116116 android : paddingTop =" 16dp"
117117 android : paddingBottom =" 4dp"
118- android : text =" 0 Awaiting"
118+ tools : text =" 0 Awaiting"
119119 android : textColor =" @android:color/black"
120120 android : textSize =" 20sp" />
121121
Original file line number Diff line number Diff line change 2929 android : layout_marginStart =" 20dp"
3030 android : layout_marginTop =" 45dp"
3131 android : layout_marginEnd =" 20dp"
32- android : text =" CS 1998: Intro to Android Development"
32+ tools : text =" CS 1998: Intro to Android Development"
3333 android : textAlignment =" center"
3434 android : textAllCaps =" false"
3535 android : textColor =" @color/white"
4545 android : layout_height =" wrap_content"
4646 android : layout_marginStart =" 20dp"
4747 android : layout_marginEnd =" 20dp"
48- android : text =" 10032"
48+ tools : text =" 10032"
4949 android : textAlignment =" center"
5050 android : textAllCaps =" false"
5151 android : textColor =" @color/white"
6464 android : layout_marginTop =" 20dp"
6565 android : layout_marginEnd =" 20dp"
6666 android : fontFamily =" sans-serif-medium"
67- android : text =" lec 001 / TR 1:25pm"
67+ tools : text =" lec 001 / TR 1:25pm"
6868 android : textAlignment =" center"
6969 android : textAllCaps =" true"
7070 android : textColor =" @color/white"
Original file line number Diff line number Diff line change 7272 android : paddingStart =" 14dp"
7373 android : paddingTop =" 16dp"
7474 android : paddingBottom =" 10dp"
75- android : text =" 0 Results"
75+ tools : text =" 0 Results"
7676 android : textColor =" @color/black"
7777 android : textSize =" 24sp" />
7878
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3+ xmlns : tools =" http://schemas.android.com/tools"
34 xmlns : app =" http://schemas.android.com/apk/res-auto"
45 android : layout_width =" match_parent"
56 android : layout_height =" wrap_content"
2526 android : maxLines =" 2"
2627 android : paddingStart =" 16dp"
2728 android : scrollHorizontally =" true"
28- android : text =" CS 1998: Intro to Android"
29+ tools : text =" CS 1998: Intro to Android"
2930 android : textColor =" @android:color/black"
3031 android : textSize =" 18sp" />
3132
5758 android : fontFamily =" sans-serif-medium"
5859 android : gravity =" bottom"
5960 android : paddingStart =" 14dp"
60- android : text =" LEC 006 / M 7:30PM"
61+ tools : text =" LEC 006 / M 7:30PM"
6162 android : textSize =" 16sp" />
6263
6364 <TextView
6869 android : fontFamily =" sans-serif-medium"
6970 android : gravity =" bottom|end"
7071 android : paddingRight =" 16dp"
71- android : text =" 10032"
72+ tools : text =" 10032"
7273 android : textSize =" 16sp" />
7374 </LinearLayout >
7475
Original file line number Diff line number Diff line change 3232 android : gravity =" bottom"
3333 android : maxLines =" 2"
3434 android : scrollHorizontally =" true"
35- android : text =" CS 1998: Intro to Android"
35+ tools : text =" CS 1998: Intro to Android"
3636 android : textColor =" @android:color/black"
3737 android : textSize =" 18sp"
3838 app : layout_constraintEnd_toStartOf =" @+id/course_status"
5858 android : layout_marginTop =" 12dp"
5959 android : fontFamily =" sans-serif-medium"
6060 android : gravity =" bottom"
61- android : text =" LEC 006 / M 7:30PM"
61+ tools : text =" LEC 006 / M 7:30PM"
6262 android : textSize =" 16sp"
6363 app : layout_constraintEnd_toStartOf =" @+id/course_pin"
6464 app : layout_constraintStart_toStartOf =" parent"
7070 android : layout_height =" wrap_content"
7171 android : layout_marginEnd =" 16dp"
7272 android : fontFamily =" sans-serif-medium"
73- android : text =" 10032"
73+ tools : text =" 10032"
7474 android : textSize =" 16sp"
7575 app : layout_constraintBottom_toBottomOf =" @+id/course_time"
7676 app : layout_constraintEnd_toEndOf =" parent"
Original file line number Diff line number Diff line change 1919 android : gravity =" bottom"
2020 android : maxLines =" 2"
2121 android : scrollHorizontally =" true"
22- android : text =" CS 1998: Intro to Android"
22+ tools : text =" CS 1998: Intro to Android"
2323 android : textColor =" @android:color/black"
2424 android : textSize =" 18sp"
2525 app : layout_constraintEnd_toStartOf =" @+id/course_status"
4545 android : layout_marginTop =" 12dp"
4646 android : fontFamily =" sans-serif-medium"
4747 android : gravity =" bottom"
48- android : text =" LEC 006 / M 7:30PM"
48+ tools : text =" LEC 006 / M 7:30PM"
4949 android : textSize =" 16sp"
5050 app : layout_constraintEnd_toStartOf =" @+id/course_pin"
5151 app : layout_constraintStart_toStartOf =" parent"
5757 android : layout_height =" wrap_content"
5858 android : layout_marginEnd =" 16dp"
5959 android : fontFamily =" sans-serif-medium"
60- android : text =" 10032"
60+ tools : text =" 10032"
6161 android : textSize =" 16sp"
6262 app : layout_constraintBottom_toBottomOf =" @+id/course_time"
6363 app : layout_constraintEnd_toEndOf =" parent"
Original file line number Diff line number Diff line change 3535 android : gravity =" bottom"
3636 android : maxLines =" 2"
3737 android : scrollHorizontally =" true"
38- android : text =" CS 1998: Intro to Android"
38+ tools : text =" CS 1998: Intro to Android"
3939 android : textColor =" @android:color/black"
4040 android : textSize =" 18sp"
4141 android : translationZ =" 2dp"
6464 android : layout_marginTop =" 12dp"
6565 android : fontFamily =" sans-serif-medium"
6666 android : gravity =" bottom"
67- android : text =" LEC 006 / M 7:30PM"
67+ tools : text =" LEC 006 / M 7:30PM"
6868 android : textSize =" 16sp"
6969 android : translationZ =" 2dp"
7070 app : layout_constraintEnd_toStartOf =" @+id/course_pin"
7777 android : layout_height =" wrap_content"
7878 android : layout_marginEnd =" 16dp"
7979 android : fontFamily =" sans-serif-medium"
80- android : text =" 10032"
80+ tools : text =" 10032"
8181 android : textSize =" 16sp"
8282 android : translationZ =" 2dp"
8383 app : layout_constraintBottom_toBottomOf =" @+id/course_time"
You can’t perform that action at this time.
0 commit comments