1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-10 12:09:27 +01:00

Fix some lint errors and warnings:

- check the calling Intent action when autostarting
- replace the FAB + image with a vector drawable
This commit is contained in:
Daniele Gobbetti 2017-04-23 12:43:13 +02:00
parent 9ed8004a69
commit f06298a3c8
6 changed files with 12 additions and 3 deletions

View File

@ -28,7 +28,7 @@ public class AutoStartReceiver extends BroadcastReceiver {
@Override @Override
public void onReceive(Context context, Intent intent) { public void onReceive(Context context, Intent intent) {
if (GBApplication.getGBPrefs().getAutoStart()) { if (GBApplication.getGBPrefs().getAutoStart() && Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
Log.i(TAG, "Boot completed, starting Gadgetbridge"); Log.i(TAG, "Boot completed, starting Gadgetbridge");
GBApplication.deviceService().start(); GBApplication.deviceService().start();
} }

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
</vector>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 B

View File

@ -30,7 +30,7 @@
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_gravity="bottom|end" android:layout_gravity="bottom|end"
android:src="@drawable/ic_add_white" app:srcCompat="@drawable/ic_add"
app:elevation="6dp" app:elevation="6dp"
app:pressedTranslationZ="12dp" app:pressedTranslationZ="12dp"
android:layout_marginBottom="30dp" android:layout_marginBottom="30dp"

View File

@ -33,7 +33,7 @@
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_gravity="bottom|end" android:layout_gravity="bottom|end"
android:src="@drawable/ic_add_white" app:srcCompat="@drawable/ic_add"
app:elevation="6dp" app:elevation="6dp"
app:pressedTranslationZ="12dp" app:pressedTranslationZ="12dp"
android:layout_marginBottom="30dp" android:layout_marginBottom="30dp"