Add isEnabled method to AwareFeatureProvider

Test: manual
Bug: 118388808
Change-Id: I3594d0377efacd5b4558dfaa2dbd91cc925c0b23
This commit is contained in:
Beverly
2019-01-28 16:47:13 -05:00
parent e56df8877a
commit 44449272ce
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;
}
}