From b93f689060a2077b9620e662069a7bcc6803b3d2 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 11 Dec 2019 16:30:32 -0300 Subject: [PATCH] [FIX] Automatic theme repeating (#1457) --- app/views/ThemeView.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/app/views/ThemeView.js b/app/views/ThemeView.js index e6634be16..1db0fb71c 100644 --- a/app/views/ThemeView.js +++ b/app/views/ThemeView.js @@ -49,6 +49,10 @@ const THEMES = [ } ]; +if (supportSystemTheme()) { + THEMES.unshift(SYSTEM_THEME); +} + const styles = StyleSheet.create({ list: { paddingBottom: 18 @@ -76,13 +80,6 @@ class ThemeView extends React.Component { setTheme: PropTypes.func } - constructor(props) { - super(props); - if (supportSystemTheme()) { - THEMES.unshift(SYSTEM_THEME); - } - } - isSelected = (item) => { const { themePreferences } = this.props; const { group } = item;