mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-21 00:32:04 +00:00
fixed calender screen rendering on android
This commit is contained in:
parent
fcc7d3963e
commit
af0fbb740d
2 changed files with 10 additions and 37 deletions
|
|
@ -126,6 +126,15 @@ android {
|
||||||
androidResources {
|
androidResources {
|
||||||
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~'
|
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
splits {
|
||||||
|
abi {
|
||||||
|
enable true
|
||||||
|
reset()
|
||||||
|
include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
|
||||||
|
universalApk true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply static values from `gradle.properties` to the `android.packagingOptions`
|
// Apply static values from `gradle.properties` to the `android.packagingOptions`
|
||||||
|
|
|
||||||
|
|
@ -236,43 +236,6 @@ const CalendarScreen = () => {
|
||||||
setFilteredEpisodes([]);
|
setFilteredEpisodes([]);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
if (libraryItems.length === 0 && !libraryLoading) {
|
|
||||||
return (
|
|
||||||
<SafeAreaView style={[styles.container, { backgroundColor: currentTheme.colors.darkBackground }]}>
|
|
||||||
<StatusBar barStyle="light-content" />
|
|
||||||
|
|
||||||
<View style={[styles.header, { borderBottomColor: currentTheme.colors.border }]}>
|
|
||||||
<TouchableOpacity
|
|
||||||
style={styles.backButton}
|
|
||||||
onPress={() => navigation.goBack()}
|
|
||||||
>
|
|
||||||
<MaterialIcons name="arrow-back" size={24} color={currentTheme.colors.text} />
|
|
||||||
</TouchableOpacity>
|
|
||||||
<Text style={[styles.headerTitle, { color: currentTheme.colors.text }]}>Calendar</Text>
|
|
||||||
<View style={{ width: 40 }} />
|
|
||||||
</View>
|
|
||||||
|
|
||||||
<View style={styles.emptyLibraryContainer}>
|
|
||||||
<MaterialIcons name="video-library" size={64} color={currentTheme.colors.lightGray} />
|
|
||||||
<Text style={styles.emptyText}>
|
|
||||||
Your library is empty
|
|
||||||
</Text>
|
|
||||||
<Text style={styles.emptySubtext}>
|
|
||||||
Add series to your library to see their upcoming episodes in the calendar
|
|
||||||
</Text>
|
|
||||||
<TouchableOpacity
|
|
||||||
style={styles.discoverButton}
|
|
||||||
onPress={() => navigation.navigate('MainTabs')}
|
|
||||||
>
|
|
||||||
<Text style={styles.discoverButtonText}>
|
|
||||||
Return to Home
|
|
||||||
</Text>
|
|
||||||
</TouchableOpacity>
|
|
||||||
</View>
|
|
||||||
</SafeAreaView>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (loading && !refreshing) {
|
if (loading && !refreshing) {
|
||||||
return (
|
return (
|
||||||
<SafeAreaView style={[styles.container, { backgroundColor: currentTheme.colors.darkBackground }]}>
|
<SafeAreaView style={[styles.container, { backgroundColor: currentTheme.colors.darkBackground }]}>
|
||||||
|
|
@ -353,6 +316,7 @@ const CalendarScreen = () => {
|
||||||
renderItem={renderEpisodeItem}
|
renderItem={renderEpisodeItem}
|
||||||
renderSectionHeader={renderSectionHeader}
|
renderSectionHeader={renderSectionHeader}
|
||||||
contentContainerStyle={styles.listContent}
|
contentContainerStyle={styles.listContent}
|
||||||
|
removeClippedSubviews={false}
|
||||||
refreshControl={
|
refreshControl={
|
||||||
<RefreshControl
|
<RefreshControl
|
||||||
refreshing={refreshing}
|
refreshing={refreshing}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue