Skip to content

Commit

Permalink
update permission layout for checkup
Browse files Browse the repository at this point in the history
  • Loading branch information
newhinton committed Apr 17, 2024
1 parent 17a966b commit ed8a8c3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
38 changes: 19 additions & 19 deletions app/src/main/res/layout/fragment_checkup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,31 @@
app:layout_constraintTop_toTopOf="parent"
tools:visibility="visible">

<TextView
android:id="@+id/textViewRequestContactPermissions"
android:layout_width="0dp"
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="24dp"
android:layout_marginEnd="24dp"
android:layout_marginBottom="32dp"
android:gravity="center"
android:text="@string/contact_permission_hint"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toTopOf="parent">

<TextView
android:id="@+id/textViewRequestContactPermissions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/contact_permission_hint" />

<Button
android:id="@+id/buttonRequestContactPermissions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="@string/Request" />
</LinearLayout>

<Button
android:id="@+id/buttonRequestContactPermissions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="162dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="161dp"
android:text="@string/Request"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textViewRequestContactPermissions" />
</androidx.constraintlayout.widget.ConstraintLayout>

<androidx.constraintlayout.widget.ConstraintLayout
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<string name="main_tab_wifi_connected">Wifi</string>
<string name="main_tab_calendar">Calendar</string>
<string name="main_last_check">Last Check:</string>
<string name="Request">Request</string>
<string name="Request">Request!</string>
<string name="wifi_add_new">Add a new Wifi setting</string>
<string name="schedule_add_new">Add a new schedule</string>
<string name="wifi_permission_hint">You need location access because wifi can be used to identify a location. We are not doing that, see X</string>
Expand Down Expand Up @@ -95,7 +95,7 @@
<string name="GrantContactsPermissionAccessDescription">This app makes use of the local contacts. To verify that your calls do not get blocked during emergencies, please grant access to the contacts. This is optional, and we will only use this to show you a warning, if required.</string>
<string name="GrantBluetoothPermissionAccessDescription">This app makes use of Bluetooth to mute your device if connected to a car, as an example. This is an optional permission. It will show up as a request to find "nearby" devices. This is because bluetooth can be abused to track your location. This app does not track you.</string>
<string name="GrantBluetoothPermissionAccess">Request!</string>
<string name="contact_permission_hint">You need contact permissions for this feature.</string>
<string name="contact_permission_hint">You need the contact access permissions for this feature.</string>
<string name="ignore_all_day">Ignore All Day Events</string>
<string name="fragment_title_schedules">Schedules</string>
<string name="fragment_title_wifi">Wifi Entries</string>
Expand Down

0 comments on commit ed8a8c3

Please sign in to comment.