Add isEnabled method to AwareFeatureProvider
Test: manual Bug: 118388808 Change-Id: I3594d0377efacd5b4558dfaa2dbd91cc925c0b23
This commit is contained in:
@@ -21,4 +21,7 @@ import android.content.Context;
|
|||||||
public interface AwareFeatureProvider {
|
public interface AwareFeatureProvider {
|
||||||
/** Returns true if the aware sensor is supported. */
|
/** Returns true if the aware sensor is supported. */
|
||||||
boolean isSupported(Context context);
|
boolean isSupported(Context context);
|
||||||
|
|
||||||
|
/** Returns true if the aware feature is enabled. */
|
||||||
|
boolean isEnabled(Context context);
|
||||||
}
|
}
|
||||||
|
@@ -23,4 +23,9 @@ public class AwareFeatureProviderImpl implements AwareFeatureProvider {
|
|||||||
public boolean isSupported(Context context) {
|
public boolean isSupported(Context context) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEnabled(Context context) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user