Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharvani Haran committed Nov 29, 2023
1 parent 14a99f1 commit c292b4c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions app/src/main/java/org/wikipedia/nearby/NearbyFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ import android.graphics.Rect
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.activity.result.contract.ActivityResultContracts
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.content.res.AppCompatResources
Expand All @@ -31,7 +29,6 @@ import com.bumptech.glide.request.target.CustomTarget
import com.bumptech.glide.request.transition.Transition
import com.mapbox.geojson.Feature
import com.mapbox.mapboxsdk.Mapbox
import com.mapbox.mapboxsdk.annotations.Marker
import com.mapbox.mapboxsdk.camera.CameraUpdateFactory
import com.mapbox.mapboxsdk.geometry.LatLng
import com.mapbox.mapboxsdk.location.LocationComponentActivationOptions
Expand All @@ -48,7 +45,6 @@ import com.mapbox.mapboxsdk.style.expressions.Expression
import com.mapbox.mapboxsdk.style.expressions.Expression.get
import com.mapbox.mapboxsdk.style.expressions.Expression.literal
import com.mapbox.mapboxsdk.style.expressions.Expression.toNumber
import com.mapbox.mapboxsdk.style.layers.PropertyFactory.circleColor
import com.mapbox.mapboxsdk.style.layers.PropertyFactory.circleStrokeColor
import com.mapbox.mapboxsdk.style.layers.PropertyFactory.circleStrokeWidth
import com.mapbox.mapboxsdk.style.layers.PropertyFactory.textAllowOverlap
Expand All @@ -57,8 +53,6 @@ import com.mapbox.mapboxsdk.style.layers.PropertyFactory.textField
import com.mapbox.mapboxsdk.style.layers.PropertyFactory.textFont
import com.mapbox.mapboxsdk.style.layers.PropertyFactory.textIgnorePlacement
import com.mapbox.mapboxsdk.style.layers.PropertyFactory.textSize
import com.mapbox.mapboxsdk.style.sources.GeoJsonSource
import kotlin.math.abs
import org.wikipedia.Constants
import org.wikipedia.R
import org.wikipedia.databinding.FragmentNearbyBinding
Expand All @@ -76,6 +70,7 @@ import org.wikipedia.util.Resource
import org.wikipedia.util.ResourceUtil
import org.wikipedia.util.ShareUtil
import org.wikipedia.util.log.L
import kotlin.math.abs

class NearbyFragment : Fragment(), LinkPreviewDialog.Callback {

Expand Down Expand Up @@ -163,7 +158,7 @@ class NearbyFragment : Fragment(), LinkPreviewDialog.Callback {
map.addOnCameraIdleListener {
onUpdateCameraPosition(mapboxMap?.cameraPosition?.target)
}
val colorLayers =arrayOf(
val colorLayers = arrayOf(
androidx.core.util.Pair(
0, ContextCompat.getColor(requireActivity(), R.color.green600)
)
Expand All @@ -172,7 +167,6 @@ class NearbyFragment : Fragment(), LinkPreviewDialog.Callback {
.withTextSize(literal(12f)).withTextField(toNumber(get(POINT_COUNT))).withTextColor(
Expression.color(Color.WHITE))
symbolManager = SymbolManager(binding.mapView, map, style, "", clusterOptions)
circleManager = CircleManager(binding.mapView, map, style, "")
symbolManager?.iconAllowOverlap = true
symbolManager?.textAllowOverlap = true
symbolManager?.addClickListener { symbol ->
Expand All @@ -184,7 +178,6 @@ class NearbyFragment : Fragment(), LinkPreviewDialog.Callback {
true
}


style.getLayer("mapbox-android-cluster-text")?.apply {
this.setProperties(
textFont(MARKER_FONT_STACK),
Expand Down

0 comments on commit c292b4c

Please sign in to comment.