Skip to content

Commit

Permalink
SonicOPT
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitalsonic committed Jan 21, 2025
1 parent 00fc349 commit 6c1a2e3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ val calendar = GregorianCalendar(2025, Calendar.JUNE, 5)
// Convert the Calendar instance to a Date object
val date = calendar.time

prayerTimeManager.fetchExactDatePrayerTimes(
prayerTimeManager.fetchSpecificDatePrayerTimes(
latitude = 33.4979105,
longitude = 73.0722461,
date = date,
Expand Down Expand Up @@ -343,7 +343,7 @@ val calendar = GregorianCalendar(2025, Calendar.JUNE, 5)
// Convert the Calendar instance to a Date object
val date = calendar.time

prayerTimeManager.fetchFastingTimesForSpecificDate(
prayerTimeManager.fetchSpecificDateFastingTimes(
latitude = 33.4979105,
longitude = 73.0722461,
date = date,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.orbitalsonic.offlineprayertime.databinding.FragmentDailyFastingTimeBinding
import com.orbitalsonic.sonicopt.enums.HighLatitudeAdjustment
import com.orbitalsonic.sonicopt.enums.AsrJuristicMethod
import com.orbitalsonic.sonicopt.enums.PrayerTimeConvention
import com.orbitalsonic.sonicopt.enums.TimeFormat
import com.orbitalsonic.sonicopt.manager.PrayerTimeManager
Expand Down Expand Up @@ -69,7 +68,7 @@ class DateFastingTimeFragment : Fragment() {
val calendar = GregorianCalendar(2025, Calendar.JUNE, 5)
// Convert the Calendar instance to a Date object
val date = calendar.time
prayerTimeManager.fetchExactDateFastingTimes(
prayerTimeManager.fetchSpecificDateFastingTimes(
latitude = latitude,
longitude = longitude,
date = date,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class DatePrayerTimeFragment : Fragment() {
// Convert the Calendar instance to a Date object
val date = calendar.time

prayerTimeManager.fetchExactDatePrayerTimes(
prayerTimeManager.fetchSpecificDatePrayerTimes(
latitude = latitude,
longitude = longitude,
date = date,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import java.sql.Time
import java.util.Calendar
import java.util.Date

Expand Down Expand Up @@ -183,7 +182,7 @@ class PrayerTimeManager {
* - `prayerCustomAngle`: Specifies custom angles for Fajr and Isha if the convention is CUSTOM.
* - `callback`: A callback to handle the success or failure of the operation.
*/
fun fetchExactDatePrayerTimes(
fun fetchSpecificDatePrayerTimes(
latitude: Double,
longitude: Double,
date: Date,
Expand Down Expand Up @@ -450,7 +449,7 @@ class PrayerTimeManager {
* - `prayerCustomAngle`: Specifies custom angles for Fajr and Isha if the convention is CUSTOM.
* - `callback`: A callback to handle the success or failure of the operation.
*/
fun fetchExactDateFastingTimes(
fun fetchSpecificDateFastingTimes(
latitude: Double,
longitude: Double,
date: Date,
Expand Down

0 comments on commit 6c1a2e3

Please sign in to comment.