Add permission dialog for file reading
Add a permission dialog for the apps READ_EXTERNAL_STORAGE permission.
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
android:indeterminateTintMode="src_in"
|
||||
android:src="@drawable/ic_error"
|
||||
android:contentDescription="@string/description_error_icon"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toTopOf="@+id/error_text"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -76,9 +77,27 @@
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/error_text"
|
||||
app:layout_constraintBottom_toTopOf="@+id/grant_button"
|
||||
app:layout_constraintVertical_bias="0.673"
|
||||
tools:textColor="@color/blue"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/grant_button"
|
||||
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/inter_semibold"
|
||||
android:onClick="@{() -> loadingModel.grant()}"
|
||||
android:text="@string/label_grant"
|
||||
android:textColor="?attr/colorPrimary"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/retry_button"
|
||||
tools:textColor="@color/blue"
|
||||
tools:visibility="visible" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</layout>
|
||||
@@ -7,9 +7,10 @@
|
||||
|
||||
<string name="error_no_music">No music found.</string>
|
||||
<string name="error_music_load_failed">Music loading failed.</string>
|
||||
<string name="error_no_perms">Auxio needs to be allowed to read your music library.</string>
|
||||
<string name="error_no_perms">Auxio needs access to your music library.</string>
|
||||
|
||||
<string name="label_retry">Retry</string>
|
||||
<string name="label_grant">Grant</string>
|
||||
<string name="label_single_song">1 Song</string>
|
||||
<string name="label_unknown_genre">Unknown Genre</string>
|
||||
<string name="label_unknown_artist">Unknown Artist</string>
|
||||
|
||||
Reference in New Issue
Block a user