Skip to content

Commit

Permalink
changed constructor from private to internal
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabin Khatiwada authored and Nabin Khatiwada committed Apr 2, 2020
1 parent 282dde7 commit 15e3bef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import com.androidbolts.library.utils.ContextProcessor
import com.androidbolts.library.utils.ExperimentalSharedPrefs
import com.androidbolts.library.utils.LocationConstants

class LocationManager private constructor(
class LocationManager internal constructor(
private val locationListener: LocationListener?,
contextProcessor: ContextProcessor,
timeOut: Long = LocationConstants.TIME_OUT_NONE,
Expand All @@ -38,7 +38,7 @@ class LocationManager private constructor(
this.gpsProvider.setPrefs(this.prefs)
}

class Builder constructor(context: Context) {
class Builder (context: Context) {

private lateinit var locationListener: LocationListener
private var timeOut: Long = LocationConstants.TIME_OUT_NONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.androidbolts.library.utils.LocationConstants.KEY_LOCATION_MODEL
import com.androidbolts.library.utils.LocationConstants.PREF_FILE
import com.google.gson.Gson

internal class PreferenceManager private constructor(){
internal class PreferenceManager internal constructor(){
private lateinit var contextProcessor: ContextProcessor
private var gson: Gson?=null

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import com.google.android.gms.location.LocationSettingsRequest
import com.google.android.gms.location.LocationSettingsStatusCodes
import com.google.android.gms.location.SettingsClient

internal class GpsManager private constructor() : GpsProvider() {
internal class GpsManager internal constructor() : GpsProvider() {
private var mFusedLocationClient: FusedLocationProviderClient? = null
private var mSettingsClient: SettingsClient? = null
private var mLocationRequest: LocationRequest = LocationRequest()
Expand Down

0 comments on commit 15e3bef

Please sign in to comment.