Skip to content

Commit

Permalink
Remove native player option for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
thornbill committed Feb 25, 2021
1 parent 22a28f5 commit 6ebfc7f
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions screens/SettingsScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,19 @@ const SettingsScreen = observer(() => {
});
}

settingsData.push({
key: 'native-video-switch',
title: t('settings.nativeVideoPlayer'),
subtitle: t('settings.minimumServerVersion'),
value: rootStore.settingStore.isNativeVideoPlayerEnabled,
onValueChange: action(value => {
rootStore.settingStore.isNativeVideoPlayerEnabled = value;
rootStore.isReloadRequired = true;
})
});
// TODO: Add Android support for native video player
if (Platform.OS === 'ios') {
settingsData.push({
key: 'native-video-switch',
title: t('settings.nativeVideoPlayer'),
subtitle: t('settings.minimumServerVersion'),
value: rootStore.settingStore.isNativeVideoPlayerEnabled,
onValueChange: action(value => {
rootStore.settingStore.isNativeVideoPlayerEnabled = value;
rootStore.isReloadRequired = true;
})
});
}

settingsData.push({
key: 'tab-labels-switch',
Expand Down

0 comments on commit 6ebfc7f

Please sign in to comment.