Skip to content

Commit

Permalink
remove unnecessary boxed Boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
simonroesch committed Sep 14, 2020
1 parent 52ad500 commit 4318676
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*
* SPDX-License-Identifier: MPL-2.0
*/

package org.dpppt.android.sdk.internal.util;

import android.content.Context;
Expand All @@ -17,7 +16,7 @@

public class LocationServiceUtil {

public static Boolean isLocationEnabled(Context context) {
public static boolean isLocationEnabled(Context context) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
LocationManager lm = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
return lm != null && lm.isLocationEnabled();
Expand Down

0 comments on commit 4318676

Please sign in to comment.