show animated activity indicator after the user presses the Play button #261

Merged
akinwale merged 3 commits from play-ux into master 2018-08-27 17:53:04 +02:00
2 changed files with 8 additions and 3 deletions
Showing only changes of commit ccaff44b8c - Show all commits

View file

@ -125,7 +125,10 @@ class FilePage extends React.PureComponent {
'Are you sure you want to remove this file from your device?', 'Are you sure you want to remove this file from your device?',
[ [
{ text: 'No' }, { text: 'No' },
{ text: 'Yes', onPress: () => { deleteFile(fileInfo.outpoint, true); } } { text: 'Yes', onPress: () => {
deleteFile(fileInfo.outpoint, true);
this.setState({ downloadPressed: false, mediaLoaded: false });
}}
], ],
{ cancelable: true } { cancelable: true }
); );

View file

@ -146,11 +146,13 @@ const filePageStyle = StyleSheet.create({
paddingTop: 16, paddingTop: 16,
paddingBottom: 8, paddingBottom: 8,
marginTop: -14, marginTop: -14,
width: '50%', width: '100%',
}, },
actionButton: { actionButton: {
alignSelf: 'flex-start',
backgroundColor: Colors.White, backgroundColor: Colors.White,
width: 160 paddingLeft: 24,
paddingRight: 24
}, },
loading: { loading: {
position: 'absolute', position: 'absolute',