• 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.biometrics.fingerprint;
18 
19 import android.app.settings.SettingsEnums;
20 import android.content.Intent;
21 import android.os.UserHandle;
22 
23 import com.android.settings.R;
24 import com.android.settings.SetupWizardUtils;
25 import com.android.settings.password.ChooseLockSettingsHelper;
26 
27 import com.google.android.setupcompat.template.FooterButton;
28 
29 public class SetupFingerprintEnrollFinish extends FingerprintEnrollFinish {
30 
31     @Override
getFingerprintEnrollingIntent()32     protected Intent getFingerprintEnrollingIntent() {
33         Intent intent = new Intent(this, SetupFingerprintEnrollEnrolling.class);
34         intent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_CHALLENGE_TOKEN, mToken);
35         if (mUserId != UserHandle.USER_NULL) {
36             intent.putExtra(Intent.EXTRA_USER_ID, mUserId);
37         }
38         SetupWizardUtils.copySetupExtras(getIntent(), intent);
39         return intent;
40     }
41 
42     @Override
initViews()43     protected void initViews() {
44         super.initViews();
45         FooterButton nextButton = getNextButton();
46         nextButton.setText(this, R.string.next_label);
47     }
48 
49     @Override
getMetricsCategory()50     public int getMetricsCategory() {
51         return SettingsEnums.FINGERPRINT_ENROLL_FINISH_SETUP;
52     }
53 }
54