Skip to content

Commit

Permalink
Merge pull request #98 from sheikh-20/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
sheikh-20 authored Jul 2, 2024
2 parents 3083fd1 + 79e4542 commit 1414197
Show file tree
Hide file tree
Showing 4 changed files with 232 additions and 184 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ android {
applicationId = "com.application.moviesapp"
minSdk = 24
targetSdk = 33
versionCode = 26
versionName = "1.0.25"
versionCode = 27
versionName = "1.0.26"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ class NetworkInterceptor @Inject constructor(@Named("movies_api_key") private va
val request = chain.request().newBuilder()
request.addHeader(name = "Authorization", value = "Bearer $apiKey")

try {
Thread.sleep(2_000L) // Introduce delay
} catch (e: InterruptedException) {
e.printStackTrace()
}
return chain.proceed(request.build())
}
}
Expand All @@ -26,11 +21,6 @@ class YoutubeNetworkInterceptor @Inject constructor(@Named("youtube_api_key") pr
val request = chain.request().url.newBuilder()
request.addQueryParameter(name = "key", value = apiKey)

try {
Thread.sleep(2_000L) // Introduce delay
} catch (e: InterruptedException) {
e.printStackTrace()
}
return chain.proceed(chain.request().newBuilder().url(request.build()).build())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,10 @@ private fun HomeTopAppbar(navController: NavHostController,

}

LaunchedEffect(key1 = null) {
onDownloadSearch("")
}

AnimatedVisibility(
visible = mylistHideTopAppBar,
enter = slideInVertically(animationSpec = tween(durationMillis = 200)),
Expand Down Expand Up @@ -992,6 +996,10 @@ private fun HomeTopAppbar(navController: NavHostController,

}

LaunchedEffect(key1 = null) {
onDownloadSearch("")
}

AnimatedVisibility(
visible = downloadHideTopAppBar,
enter = slideInVertically(animationSpec = tween(durationMillis = 200)),
Expand Down
Loading

0 comments on commit 1414197

Please sign in to comment.