Example usage for android.content.pm PermissionInfo FLAG_COSTS_MONEY

List of usage examples for android.content.pm PermissionInfo FLAG_COSTS_MONEY

Introduction

In this page you can find the example usage for android.content.pm PermissionInfo FLAG_COSTS_MONEY.

Prototype

int FLAG_COSTS_MONEY

To view the source code for android.content.pm PermissionInfo FLAG_COSTS_MONEY.

Click Source Link

Document

Flag for #flags , corresponding to costsMoney value of android.R.attr#permissionFlags .

Usage

From source file:org.fdroid.fdroid.privileged.views.AppSecurityPermissions.java

private PermissionItemView getPermissionItemView(MyPermissionGroupInfo grp, MyPermissionInfo perm,
        boolean first, CharSequence newPermPrefix) {
    PermissionItemView permView = (PermissionItemView) inflater
            .inflate(Build.VERSION.SDK_INT >= 17 && (perm.flags & PermissionInfo.FLAG_COSTS_MONEY) != 0
                    ? R.layout.app_permission_item_money
                    : R.layout.app_permission_item, null);
    permView.setPermission(grp, perm, first, newPermPrefix);
    return permView;
}