diff options
Diffstat (limited to 'packages/Keyguard/test')
-rw-r--r-- | packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgent.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgent.java b/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgent.java index 09c7165..f28d0e4 100644 --- a/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgent.java +++ b/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/SampleTrustAgent.java @@ -28,6 +28,8 @@ import android.support.v4.content.LocalBroadcastManager; import android.util.Log; import android.widget.Toast; +import java.util.List; + public class SampleTrustAgent extends TrustAgentService implements SharedPreferences.OnSharedPreferenceChangeListener { @@ -90,11 +92,10 @@ public class SampleTrustAgent extends TrustAgentService } @Override - public boolean onConfigure(Configuration config) { - if (config != null && config.options != null) { - for (int i = 0; i < config.options.size(); i++) { - PersistableBundle options = config.options.get(i); - Log.v(TAG, "Policy options received: " + options.toString()); + public boolean onConfigure(List<PersistableBundle> options) { + if (options != null) { + for (int i = 0; i < options.size(); i++) { + Log.v(TAG, "Policy options received: " + options.get(i)); } } else { Log.w(TAG, "onConfigure() called with no options"); |