low hanging fruits:
- add break after case - center vertically the smart wakeup checkbox
This commit is contained in:
parent
1caca1439a
commit
764dd70e45
|
@ -268,7 +268,7 @@ public class BluetoothCommunicationService extends Service {
|
|||
break;
|
||||
case ACTION_SET_ALARMS:
|
||||
mDeviceSupport.onSetAlarms();
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
return START_STICKY;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
|
@ -7,23 +8,29 @@
|
|||
tools:context="nodomain.freeyourgadget.gadgetbridge.activities.AlarmDetails">
|
||||
|
||||
|
||||
<TimePicker
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/alarm_time_picker"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentStart="true" />
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<CheckedTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:text="@string/alarm_smart_wakeup"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/alarm_ctv_smart_wakeup"
|
||||
android:checked="false"
|
||||
android:drawableTop="@drawable/abc_btn_check_material"
|
||||
android:layout_above="@+id/dowSelector"
|
||||
android:layout_toEndOf="@+id/alarm_time_picker" />
|
||||
<TimePicker
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/alarm_time_picker"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentStart="true" />
|
||||
|
||||
<CheckedTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/alarm_smart_wakeup"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/alarm_ctv_smart_wakeup"
|
||||
android:checked="false"
|
||||
android:drawableTop="@drawable/abc_btn_check_material"
|
||||
android:layout_toEndOf="@+id/alarm_time_picker"
|
||||
android:layout_gravity="center_vertical" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
|
@ -119,5 +126,4 @@
|
|||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
|
Loading…
Reference in New Issue