Introduce KeyguardExternalView

For now, this class is used only to expose the category that must be used
by the activity requesting permissions in the keyguard and the name of the
extra argument provided in the intent used to start such activity

Change-Id: Ib978d192110ebab65691c6c3e03f977df2ab47d3
This commit is contained in:
Luis Vidal 2015-12-11 13:16:31 -08:00 committed by Clark Scheff
parent b9d7733a67
commit 637e40fba5
1 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,46 @@
/*
* Copyright (C) 2015 The CyanogenMod Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cyanogenmod.externalviews;
import android.content.Context;
import android.content.ComponentName;
import android.util.AttributeSet;
public final class KeyguardExternalView extends ExternalView {
public static final String EXTRA_PERMISSION_LIST = "permissions_list";
public static final String CATEGORY_KEYGUARD_GRANT_PERMISSION
= "org.cyanogenmod.intent.category.KEYGUARD_GRANT_PERMISSION";
public KeyguardExternalView(Context context, AttributeSet attrs) {
super(context,attrs);
}
public KeyguardExternalView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context,attrs,defStyleAttr);
}
public KeyguardExternalView(Context context, AttributeSet attrs, int defStyleAttr,
int defStyleRes) {
super(context,attrs,defStyleAttr,defStyleRes);
}
public KeyguardExternalView(Context context, AttributeSet attributeSet,
ComponentName componentName) {
super(context,attributeSet,componentName);
}
}