2020-12-09 12:42:01 +01:00
|
|
|
package org.schabi.newpipe.error;
|
2017-06-28 07:27:32 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The user actions that can cause an error.
|
|
|
|
*/
|
|
|
|
public enum UserAction {
|
|
|
|
USER_REPORT("user report"),
|
|
|
|
UI_ERROR("ui error"),
|
2020-12-11 14:55:47 +01:00
|
|
|
SUBSCRIPTION_CHANGE("subscription change"),
|
|
|
|
SUBSCRIPTION_UPDATE("subscription update"),
|
|
|
|
SUBSCRIPTION_GET("get subscription"),
|
|
|
|
SUBSCRIPTION_IMPORT_EXPORT("subscription import or export"),
|
2017-09-03 08:04:18 +02:00
|
|
|
LOAD_IMAGE("load image"),
|
2020-12-11 14:55:47 +01:00
|
|
|
SOMETHING_ELSE("something else"),
|
2017-09-03 08:04:18 +02:00
|
|
|
SEARCHED("searched"),
|
|
|
|
GET_SUGGESTIONS("get suggestions"),
|
|
|
|
REQUESTED_STREAM("requested stream"),
|
|
|
|
REQUESTED_CHANNEL("requested channel"),
|
2018-04-01 21:54:00 +02:00
|
|
|
REQUESTED_PLAYLIST("requested playlist"),
|
2018-04-28 16:11:37 +02:00
|
|
|
REQUESTED_KIOSK("requested kiosk"),
|
2018-09-23 03:32:19 +02:00
|
|
|
REQUESTED_COMMENTS("requested comments"),
|
2019-04-28 22:43:54 +02:00
|
|
|
REQUESTED_FEED("requested feed"),
|
2020-12-11 14:55:47 +01:00
|
|
|
REQUESTED_BOOKMARK("bookmark"),
|
2018-08-18 14:11:41 +02:00
|
|
|
DELETE_FROM_HISTORY("delete from history"),
|
2020-12-11 14:55:47 +01:00
|
|
|
PLAY_STREAM("play stream"),
|
|
|
|
DOWNLOAD_OPEN_DIALOG("download open dialog"),
|
New MP4 muxer + Queue changes + Storage fixes
Main changes:
* correctly check the available space (CircularFile.java)
* misc cleanup (CircularFile.java)
* use the "Error Reporter" for non-http errors
* rewrite network state checking and add better support for API 21 (Lollipop) or higher
* implement "metered networks"
* add buttons in "Downloads" activity to start/pause all pending downloads, ignoring the queue flag or if the network is "metered"
* add workaround for VPN connections and/or network switching. Example: switching WiFi to 3G
* rewrite DataReader ¡Webm muxer is now 57% more faster!
* rewrite CircularFile, use file buffers instead of memory buffers. Less troubles in low-end devices
* fix missing offset for KaxCluster (WebMWriter.java), manifested as no thumbnails on file explorers
Download queue:
* remember queue status, unless the user pause the download (un-queue)
* semi-automatic downloads, between networks. Effective if the user create a new download or the downloads activity is starts
* allow enqueue failed downloads
* new option, queue limit, enabled by default. Used to allow one or multiple downloads at same time
Miscellaneous:
* fix crash while selecting details/error menu (mistake on MissionFragment.java)
* misc serialize changes (DownloadMission.java)
* minor UI tweaks
* allow overwrite paused downloads
* fix wrong icons for grid/list button in downloads
* add share option
* implement #2006
* correct misspelled word in strings.xml (es) (cmn)
* fix MissionAdapter crash during device shutdown
New Mp4Muxer + required changes:
* new mp4 muxer (from dash only) with this, muxing on Android 7 is possible now!!!
* re-work in SharpStream
* drop mp4 dash muxer
* misc changes: add warning in SecondaryStreamHelper.java,
* strip m4a DASH files to normal m4a format (youtube only)
Fix storage issues:
* warn to the user if is choosing a "read only" download directory (for external SD Cards), useless is rooted :)
* "write proof" allow post-processing resuming only if the device ran out of space
* implement "insufficient storage" error for downloads
2019-03-23 02:54:07 +01:00
|
|
|
DOWNLOAD_POSTPROCESSING("download post-processing"),
|
2020-09-22 15:45:40 +02:00
|
|
|
DOWNLOAD_FAILED("download failed"),
|
2021-12-31 20:04:56 +01:00
|
|
|
NEW_STREAMS_NOTIFICATIONS("new streams notifications"),
|
2020-12-11 14:55:47 +01:00
|
|
|
PREFERENCES_MIGRATION("migration of preferences"),
|
|
|
|
SHARE_TO_NEWPIPE("share to newpipe"),
|
|
|
|
CHECK_FOR_NEW_APP_VERSION("check for new app version");
|
2017-06-28 07:27:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
private final String message;
|
|
|
|
|
2020-03-31 19:20:15 +02:00
|
|
|
UserAction(final String message) {
|
2017-06-28 07:27:32 +02:00
|
|
|
this.message = message;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getMessage() {
|
|
|
|
return message;
|
|
|
|
}
|
|
|
|
}
|