Skip to content

Commit

Permalink
Toggle button on DetectionScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Boreneoux committed Jun 12, 2024
1 parent c4f3674 commit 21a77d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Android CI

on:
push:
branches:
- main
tags:
- '*'

Expand All @@ -11,16 +13,16 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'

- name: Cache Gradle packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
Expand All @@ -30,7 +32,7 @@ jobs:
${{ runner.os }}-gradle-
- name: Set up Android SDK
uses: android-actions/setup-android@v2
uses: android-actions/setup-android@v3
with:
api-level: 34
build-tools: 34.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ fun DetectionScreen(
}
}


val file = context.createImageFile()
val uri = FileProvider.getUriForFile(
Objects.requireNonNull(context),
Expand Down Expand Up @@ -191,6 +190,7 @@ fun DetectionScreen(
modifier = Modifier
.padding(top = 8.dp, bottom = 36.dp)
.width(250.dp),
enabled = viewModel.imageDetection != null
) {
Text(text = stringResource(R.string.mulai_deteksi))
}
Expand Down

0 comments on commit 21a77d1

Please sign in to comment.