Combine the two Constants files into one file.

This commit is contained in:
Isira Seneviratne 2021-01-15 12:13:47 +05:30
parent 8fd48a88be
commit 14ddf37988
3 changed files with 20 additions and 23 deletions

View File

@ -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() { }
}

View 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

View File

@ -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