Skip to content

Commit

Permalink
bug fixed (manifest issue & search query empty)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunyu1019 committed Apr 8, 2022
1 parent 424e154 commit f9f5843
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "kr.yhs.traffic"
minSdk 26
targetSdk 32
versionCode 1100
versionName "1.0.0"
versionCode 1101
versionName "1.0.1"

}

Expand Down
9 changes: 5 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-feature android:name="android.hardware.type.watch" />

<uses-feature
android:name="android.hardware.type.watch"
android:required="true"
/>

<application
android:allowBackup="true"
Expand All @@ -30,8 +32,7 @@

<activity
android:name=".MainActivity"
android:exported="true"
android:label="@string/app_name">
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/kr/yhs/traffic/ui/ComposeApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fun ComposeApp(activity: MainActivity) {
if (it.resultCode == Activity.RESULT_OK) {
val intent = it.data
val remoteInputResponse = RemoteInput.getResultsFromIntent(intent)
stationQuery = remoteInputResponse.getString("SEARCH_BUS_STATION", " ")
stationQuery = remoteInputResponse.getCharSequence("SEARCH_BUS_STATION", "").toString()
navigationController.navigate(
Screen.StationList.route + "?$STATION_TYPE=${StationListType.SEARCH}",
)
Expand All @@ -65,7 +65,7 @@ fun ComposeApp(activity: MainActivity) {
startDestination = Screen.MainScreen.route
) {
composable(Screen.MainScreen.route) {
mainPage(
MainPage(
listOf({
StationSearch {
val remoteInputs = listOf(
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/kr/yhs/traffic/ui/pages/MainPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.google.accompanist.pager.rememberPagerState

@OptIn(ExperimentalPagerApi::class)
@Composable
fun mainPage(
fun MainPage(
pages: List<@Composable () -> Unit>
) {
val pagerState = rememberPagerState()
Expand Down

0 comments on commit f9f5843

Please sign in to comment.