Skip to content

Commit

Permalink
Merge pull request #5418 from Isira-Seneviratne/Unify_constants
Browse files Browse the repository at this point in the history
Combine the two Constants files into one file.
  • Loading branch information
Stypox authored Jan 15, 2021
2 parents 302fde6 + 14ddf37 commit c216f29
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 23 deletions.
17 changes: 0 additions & 17 deletions app/src/main/java/org/schabi/newpipe/util/Constants.java

This file was deleted.

20 changes: 20 additions & 0 deletions app/src/main/java/org/schabi/newpipe/util/Constants.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@file:JvmName("Constants")

package org.schabi.newpipe.util

/**
* Default duration when using throttle functions across the app, in milliseconds.
*/
const val DEFAULT_THROTTLE_TIMEOUT = 120L

const val KEY_SERVICE_ID = "key_service_id"
const val KEY_URL = "key_url"
const val KEY_TITLE = "key_title"
const val KEY_LINK_TYPE = "key_link_type"
const val KEY_OPEN_SEARCH = "key_open_search"
const val KEY_SEARCH_STRING = "key_search_string"

const val KEY_THEME_CHANGE = "key_theme_change"
const val KEY_MAIN_PAGE_CHANGE = "key_main_page_change"

const val NO_SERVICE_ID = -1
6 changes: 0 additions & 6 deletions app/src/main/java/org/schabi/newpipe/util/ConstantsKt.kt

This file was deleted.

0 comments on commit c216f29

Please sign in to comment.