Skip to content

Commit

Permalink
Fix indentation according to new ktlint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
tasomaniac committed Nov 27, 2020
1 parent 83e40be commit e49fc81
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ class DebugSettings @Inject constructor(
R.string.pref_key_debug_maps to "http://maps.google.com/maps",
R.string.pref_key_debug_instagram to "https://www.instagram.com/tasomaniac/",
R.string.pref_key_debug_hangouts to
"https://hangouts.google.com/hangouts/_/novoda.com/[email protected]",
"https://hangouts.google.com/hangouts/_/novoda.com/[email protected]",
R.string.pref_key_debug_play to
"https://play.google.com/store/apps/details?id=com.tasomaniac.openwith&utm_source=facebook",
"https://play.google.com/store/apps/details?id=com.tasomaniac.openwith&utm_source=facebook",
R.string.pref_key_debug_redirect to "http://forward.immobilienscout24.de/9004STF/expose/78069302",
R.string.pref_key_debug_non_http to "is24://retargetShowSearchForm",
R.string.pref_key_debug_missing_http to "www.google.com"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ class SetDefaultBrowser @Inject constructor(
} else {
Intent(Intent.ACTION_VIEW).apply {
data = Uri.parse("https://")
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP or
Intent.FLAG_ACTIVITY_SINGLE_TOP
flags = Intent.FLAG_ACTIVITY_NEW_TASK or
Intent.FLAG_ACTIVITY_CLEAR_TOP or
Intent.FLAG_ACTIVITY_SINGLE_TOP
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class AskForRatingCondition(private val prefs: SharedPreferences) {

fun shouldDisplay(): Boolean {
return alreadyShown.not() &&
firstLaunchInMillis <= LAUNCH_DAY_THRESHOLD.daysAgo() &&
launchCount >= LAUNCH_TIMES_THRESHOLD
firstLaunchInMillis <= LAUNCH_DAY_THRESHOLD.daysAgo() &&
launchCount >= LAUNCH_TIMES_THRESHOLD
}

var alreadyShown: Boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ object DataModule {

@Singleton
@Provides
@JvmStatic
fun room(app: Application): Database =
Room.databaseBuilder(app, Database::class.java, "openWithDatabase.db")
.addMigrations(Migration1to2)
.build()

@Provides
@JvmStatic
fun preferredAppDao(database: Database) = database.preferredAppDao()
}

0 comments on commit e49fc81

Please sign in to comment.