diff --git a/ReactNativeClient/android/app/build.gradle b/ReactNativeClient/android/app/build.gradle
index 5902fd45f..6943a04a9 100644
--- a/ReactNativeClient/android/app/build.gradle
+++ b/ReactNativeClient/android/app/build.gradle
@@ -90,8 +90,8 @@ android {
applicationId "net.cozic.joplin"
minSdkVersion 16
targetSdkVersion 22
- versionCode 39
- versionName "0.9.26"
+ versionCode 40
+ versionName "0.9.27"
ndk {
abiFilters "armeabi-v7a", "x86"
}
diff --git a/ReactNativeClient/lib/components/screens/status.js b/ReactNativeClient/lib/components/screens/status.js
index 4754097af..738412bd6 100644
--- a/ReactNativeClient/lib/components/screens/status.js
+++ b/ReactNativeClient/lib/components/screens/status.js
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
-import { ListView, StyleSheet, View, Text, Button } from 'react-native';
+import { ListView, StyleSheet, View, Text, Button, FlatList } from 'react-native';
import { Setting } from 'lib/models/setting.js';
import { connect } from 'react-redux'
import { Log } from 'lib/log.js'
@@ -53,28 +53,47 @@ class StatusScreenComponent extends BaseScreenComponent {
let baseStyle = {
paddingLeft: 6,
paddingRight: 6,
- paddingTop: 0,
- paddingBottom: 0,
+ paddingTop: 2,
+ paddingBottom: 2,
flex: 0,
color: theme.color,
fontSize: theme.fontSize,
};
+
+ let lines = [];
+
for (let i = 0; i < report.length; i++) {
let section = report[i];
let style = Object.assign({}, baseStyle);
style.fontWeight = 'bold';
if (i > 0) style.paddingTop = 20;
- output.push({section.title});
+ lines.push({ key: 'section_' + i, isSection: true, text: section.title });
for (let n in section.body) {
if (!section.body.hasOwnProperty(n)) continue;
style = Object.assign({}, baseStyle);
- output.push({section.body[n]});
+ lines.push({ key: 'item_' + i + '_' + n, text: section.body[n] });
}
+
+ lines.push({ key: 'divider2_' + i, isDivider: true });
}
- return output;
+ return ( {
+ let style = Object.assign({}, baseStyle);
+ if (item.isSection === true) {
+ style.fontWeight = 'bold';
+ style.marginBottom = 5;
+ }
+ if (item.isDivider) {
+ return ();
+ } else {
+ return ({item.text});
+ }
+ }}
+ />);
}
let body = renderBody(this.state.report);
diff --git a/index.html b/index.html
index 2faef9a83..176fa002e 100644
--- a/index.html
+++ b/index.html
@@ -148,6 +148,7 @@
Search functionality.
Geolocation support.
Supports multiple languages.
+
Mobile: Support for dark theme / light theme.
Localisation
The applications are currently available in English and French. If you would like to contribute a translation it is quite straightforward, please follow these steps: