mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-22 11:02:35 +01:00
Combine the two Constants files into one file.
This commit is contained in:
parent
8fd48a88be
commit
14ddf37988
@ -1,17 +0,0 @@
|
||||
package org.schabi.newpipe.util;
|
||||
|
||||
public final class Constants {
|
||||
public static final String KEY_SERVICE_ID = "key_service_id";
|
||||
public static final String KEY_URL = "key_url";
|
||||
public static final String KEY_TITLE = "key_title";
|
||||
public static final String KEY_LINK_TYPE = "key_link_type";
|
||||
public static final String KEY_OPEN_SEARCH = "key_open_search";
|
||||
public static final String KEY_SEARCH_STRING = "key_search_string";
|
||||
|
||||
public static final String KEY_THEME_CHANGE = "key_theme_change";
|
||||
public static final String KEY_MAIN_PAGE_CHANGE = "key_main_page_change";
|
||||
|
||||
public static final int NO_SERVICE_ID = -1;
|
||||
|
||||
private Constants() { }
|
||||
}
|
20
app/src/main/java/org/schabi/newpipe/util/Constants.kt
Normal file
20
app/src/main/java/org/schabi/newpipe/util/Constants.kt
Normal file
@ -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
|
@ -1,6 +0,0 @@
|
||||
package org.schabi.newpipe.util
|
||||
|
||||
/**
|
||||
* Default duration when using throttle functions across the app, in milliseconds.
|
||||
*/
|
||||
const val DEFAULT_THROTTLE_TIMEOUT = 120L
|
Loading…
Reference in New Issue
Block a user