Skip to content

Commit 63f0eba

Browse files
committed
Adjust layouts, SDK API
1 parent 77cd82d commit 63f0eba

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ allprojects {
2323
apply plugin: 'com.android.application'
2424

2525
android {
26-
compileSdkVersion 35
26+
compileSdkVersion 34
2727
namespace "org.billthefarmer.buses"
2828

2929
defaultConfig {
3030
applicationId "org.billthefarmer.buses"
3131
minSdkVersion 21
32-
targetSdkVersion 35
32+
targetSdkVersion 34
3333
versionName "1.09"
3434
versionCode 109
3535

@@ -47,9 +47,8 @@ android {
4747
}
4848

4949
lintOptions {
50-
disable 'RtlHardcoded', 'ExpiredTargetSdkVersion', 'AndroidGradlePluginVersion',
51-
'NonConstantResourceId', 'ClickableViewAccessibility', 'IconDensities',
52-
'OldTargetApi', 'GradleDependency', 'ScopedStorage'
50+
disable 'ScopedStorage', 'OldTargetApi', 'NonConstantResourceId', 'GradleDependency',
51+
'AndroidGradlePluginVersion'
5352
// abortOnError false
5453
}
5554
}

src/main/java/org/billthefarmer/buses/Buses.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ public boolean onScroll(ScrollEvent event)
285285
map.setOnTouchListener((v, event) ->
286286
{
287287
gestureDetector.onTouchEvent(event);
288+
v.performClick();
288289
return false;
289290
});
290291

src/main/res/layout/main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
android:id="@+id/locate"
1313
android:layout_width="wrap_content"
1414
android:layout_height="wrap_content"
15-
android:layout_marginRight="28dp"
15+
android:layout_marginEnd="28dp"
1616
android:layout_marginBottom="28dp"
1717
android:layout_gravity="bottom|end"
1818
android:elevation="6dp"

src/main/res/layout/widget.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
android:id="@+id/title"
1919
android:layout_width="0dp"
2020
android:layout_height="wrap_content"
21-
android:layout_marginLeft="8dp"
22-
android:layout_marginRight="8dp"
21+
android:layout_marginStart="8dp"
22+
android:layout_marginEnd="8dp"
2323
android:layout_marginTop="4dp"
2424
android:layout_marginBottom="4dp"
2525
android:layout_weight="1"
@@ -31,7 +31,7 @@
3131
<FrameLayout
3232
android:layout_width="wrap_content"
3333
android:layout_height="wrap_content"
34-
android:layout_marginRight="8dp"
34+
android:layout_marginEnd="8dp"
3535
android:layout_marginTop="4dp"
3636
android:layout_marginBottom="4dp"
3737
android:layout_weight="0">
@@ -59,8 +59,8 @@
5959
android:id="@+id/list"
6060
android:layout_width="fill_parent"
6161
android:layout_height="fill_parent"
62-
android:paddingLeft="8dp"
63-
android:paddingRight="8dp"
62+
android:paddingStart="8dp"
63+
android:paddingEnd="8dp"
6464
android:paddingTop="4dp"
6565
android:paddingBottom="4dp"
6666
android:scrollHorizontally="true"

0 commit comments

Comments
 (0)