• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2015 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License
15  */
16 
17 package com.android.settings.fingerprint;
18 
19 import android.content.Intent;
20 import android.os.UserHandle;
21 import android.widget.Button;
22 
23 import com.android.internal.logging.nano.MetricsProto.MetricsEvent;
24 import com.android.settings.R;
25 import com.android.settings.SetupWizardUtils;
26 import com.android.settings.password.ChooseLockSettingsHelper;
27 
28 public class SetupFingerprintEnrollFinish extends FingerprintEnrollFinish {
29 
30     @Override
getEnrollingIntent()31     protected Intent getEnrollingIntent() {
32         Intent intent = new Intent(this, SetupFingerprintEnrollEnrolling.class);
33         intent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_CHALLENGE_TOKEN, mToken);
34         if (mUserId != UserHandle.USER_NULL) {
35             intent.putExtra(Intent.EXTRA_USER_ID, mUserId);
36         }
37         SetupWizardUtils.copySetupExtras(getIntent(), intent);
38         return intent;
39     }
40 
41     @Override
initViews()42     protected void initViews() {
43         super.initViews();
44         Button nextButton = findViewById(R.id.next_button);
45         nextButton.setText(R.string.next_label);
46     }
47 
48     @Override
getMetricsCategory()49     public int getMetricsCategory() {
50         return MetricsEvent.FINGERPRINT_ENROLL_FINISH_SETUP;
51     }
52 }
53