1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 16:40:32 +00:00

Merge pull request #5418 from Isira-Seneviratne/Unify_constants

Combine the two Constants files into one file.
This commit is contained in:
Stypox 2021-01-15 09:20:08 +01:00 committed by GitHub
commit c216f29fb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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