low hanging fruits:

- add break after case
- center vertically the smart wakeup checkbox
This commit is contained in:
Daniele Gobbetti 2015-06-25 12:42:47 +02:00 committed by Daniele Gobbetti
parent 1caca1439a
commit 764dd70e45
2 changed files with 26 additions and 20 deletions

View File

@ -268,7 +268,7 @@ public class BluetoothCommunicationService extends Service {
break;
case ACTION_SET_ALARMS:
mDeviceSupport.onSetAlarms();
break;
}
return START_STICKY;

View File

@ -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,6 +8,11 @@
tools:context="nodomain.freeyourgadget.gadgetbridge.activities.AlarmDetails">
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TimePicker
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -16,14 +22,15 @@
<CheckedTextView
android:layout_width="wrap_content"
android:layout_height="fill_parent"
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_above="@+id/dowSelector"
android:layout_toEndOf="@+id/alarm_time_picker" />
android:layout_toEndOf="@+id/alarm_time_picker"
android:layout_gravity="center_vertical" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
@ -119,5 +126,4 @@
</LinearLayout>
</RelativeLayout>
</LinearLayout>