<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<androidx.constraintlayout.widget.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/permissions_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <TextView
        android:id="@+id/camerStatus"
        style="@style/QuickSettingsText.PermissionItemEnd"
        android:layout_width="wrap_content"
        android:layout_height="@dimen/quicksettings_item_height"
        android:visibility="gone"
        app:layout_constraintBottom_toTopOf="@id/microphoneStatus"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@id/cameraLabel"
        tools:text="Allowed"
        tools:visibility="visible" />

    <TextView
        android:id="@+id/cameraLabel"
        style="@style/QuickSettingsText.Icon"
        android:layout_width="0dp"
        android:layout_height="@dimen/quicksettings_item_height"
        android:drawableStart="@drawable/ic_camera"
        android:text="@string/preference_phone_feature_camera"
        android:visibility="gone"
        app:layout_constraintBottom_toTopOf="@id/microphoneLabel"
        app:layout_constraintEnd_toStartOf="@id/camerStatus"
        app:layout_constraintStart_toStartOf="parent"
        tools:visibility="visible" />

    <TextView
        android:id="@+id/microphoneStatus"
        style="@style/QuickSettingsText.PermissionItemEnd"
        android:layout_width="wrap_content"
        android:layout_height="@dimen/quicksettings_item_height"
        android:visibility="gone"
        app:layout_constraintBottom_toTopOf="@id/notificationStatus"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@id/microphoneLabel"
        tools:text="Blocked by Android"
        tools:visibility="visible" />

    <TextView
        android:id="@+id/microphoneLabel"
        style="@style/QuickSettingsText.Icon"
        android:layout_width="0dp"
        android:layout_height="@dimen/quicksettings_item_height"
        android:drawableStart="@drawable/ic_microphone"
        android:text="@string/preference_phone_feature_microphone"
        android:visibility="gone"
        app:layout_constraintBottom_toTopOf="@id/notificationLabel"
        app:layout_constraintEnd_toStartOf="@id/microphoneStatus"
        app:layout_constraintStart_toStartOf="parent"
        tools:visibility="visible" />

    <TextView
        android:id="@+id/notificationStatus"
        style="@style/QuickSettingsText.PermissionItemEnd"
        android:layout_width="wrap_content"
        android:layout_height="@dimen/quicksettings_item_height"
        android:visibility="gone"
        app:layout_constraintBottom_toTopOf="@id/locationStatus"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@id/notificationLabel"
        tools:text="Blocked"
        tools:visibility="visible" />

    <TextView
        android:id="@+id/notificationLabel"
        style="@style/QuickSettingsText.Icon"
        android:layout_width="0dp"
        android:layout_height="@dimen/quicksettings_item_height"
        android:drawableStart="@drawable/ic_notifications"
        android:text="@string/preference_phone_feature_notification"
        android:visibility="gone"
        app:layout_constraintBottom_toTopOf="@id/locationLabel"
        app:layout_constraintEnd_toStartOf="@id/notificationStatus"
        app:layout_constraintStart_toStartOf="parent"
        tools:visibility="visible" />

    <TextView
        android:id="@+id/locationStatus"
        style="@style/QuickSettingsText.PermissionItemEnd"
        android:layout_width="wrap_content"
        android:layout_height="@dimen/quicksettings_item_height"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@id/locationLabel"
        tools:text="Blocked"
        tools:visibility="visible" />

    <TextView
        android:id="@+id/locationLabel"
        style="@style/QuickSettingsText.Icon"
        android:layout_width="0dp"
        android:layout_height="@dimen/quicksettings_item_height"
        android:drawableStart="@drawable/ic_location"
        android:text="@string/preference_phone_feature_location"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toStartOf="@id/locationStatus"
        app:layout_constraintStart_toStartOf="parent"
        tools:visibility="visible" />
</androidx.constraintlayout.widget.ConstraintLayout>
