Skip to content

Commit

Permalink
Final fix with widget item click set dining tab. For some reason when…
Browse files Browse the repository at this point in the history
… declared as a separate function, the tab is not set to dining when widget is clicked.
  • Loading branch information
baronhsieh2005 committed Aug 23, 2024
1 parent d26434e commit b7bc090
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class GsrReservationsFragment : Fragment() {
}
})
} catch (e: Exception) {
FirebaseCrashlytics.getInstance().recordException(e)
e.printStackTrace()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import android.graphics.Color
import android.os.Bundle
import android.widget.RemoteViews
import android.widget.RemoteViewsService
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.pennapps.labs.pennmobile.DiningHallWidget
import com.pennapps.labs.pennmobile.R
import com.pennapps.labs.pennmobile.api.DiningRequest
Expand Down Expand Up @@ -131,7 +132,8 @@ class DiningHallWidgetAdapter : RemoteViewsService() {
}
}
} catch (e: Exception) {
e.printStackTrace();
FirebaseCrashlytics.getInstance().recordException(e)
e.printStackTrace()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class LaundryViewModel : ViewModel() {
val room = roomResponse.body()!!
room.id = roomId
rooms.add(room)
Log.i("Laundry", "Room data fetched")
true
} else {
Log.i("Laundry", "Failed to get room data")
Expand Down

0 comments on commit b7bc090

Please sign in to comment.