Merge "Add isEnabled method to AwareFeatureProvider"

This commit is contained in:
TreeHugger Robot
2019-01-29 01:59:29 +00:00
committed by Android (Google) Code Review
2 changed files with 8 additions and 0 deletions

View File

@@ -21,4 +21,7 @@ import android.content.Context;
public interface AwareFeatureProvider {
/** Returns true if the aware sensor is supported. */
boolean isSupported(Context context);
/** Returns true if the aware feature is enabled. */
boolean isEnabled(Context context);
}

View File

@@ -23,4 +23,9 @@ public class AwareFeatureProviderImpl implements AwareFeatureProvider {
public boolean isSupported(Context context) {
return false;
}
@Override
public boolean isEnabled(Context context) {
return false;
}
}