Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1a5bf286
authored
Feb 07, 2019
by
olly
Committed by
Andrew Lewis
Feb 18, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Cleanup for database on internal storage
PiperOrigin-RevId: 232923385
parent
dd99fdcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/CachedContentIndex.java
library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/CachedContentIndex.java
View file @
1a5bf286
...
...
@@ -60,7 +60,6 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
/* package */
class
CachedContentIndex
{
/* package */
static
final
String
FILE_NAME_ATOMIC
=
"cached_content_index.exi"
;
private
static
final
String
FILE_NAME_DATABASE
=
"cached_content_index.db"
;
private
static
final
int
VERSION
=
2
;
private
static
final
int
VERSION_METADATA_INTRODUCED
=
2
;
...
...
@@ -96,13 +95,10 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
private
Storage
storage
;
@Nullable
private
Storage
previousStorage
;
/**
* Returns whether the file is an index file, or an auxiliary file associated with an index file
* (e.g. an atomic file backup or auxiliary database file).
*/
/** Returns whether the file is an index file. */
public
static
final
boolean
isIndexFile
(
String
fileName
)
{
// Atomic file backups a
nd auxiliary database files a
dd additional suffixes to the file name.
return
fileName
.
startsWith
(
FILE_NAME_ATOMIC
)
||
fileName
.
startsWith
(
FILE_NAME_DATABASE
)
;
// Atomic file backups add additional suffixes to the file name.
return
fileName
.
startsWith
(
FILE_NAME_ATOMIC
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment