1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Mobile: Hide irrelevant settings

This commit is contained in:
Laurent Cozic 2017-11-23 18:54:26 +00:00
parent d8b19f7d08
commit fbf7b2cc43
4 changed files with 7 additions and 6 deletions

View File

@ -90,8 +90,8 @@ android {
applicationId "net.cozic.joplin"
minSdkVersion 16
targetSdkVersion 22
versionCode 72
versionName "0.10.57"
versionCode 73
versionName "0.10.58"
ndk {
abiFilters "armeabi-v7a", "x86"
}

View File

@ -132,7 +132,7 @@ class NoteItemComponent extends Component {
const selectionWrapperStyle = isSelected ? this.styles().selectionWrapperSelected : this.styles().selectionWrapper;
return (
<TouchableOpacity onPress={() => this.onPress()} onLongPress={() => this.onLongPress()}>
<TouchableOpacity onPress={() => this.onPress()} onLongPress={() => this.onLongPress() } activeOpacity={0.5}>
<View style={ selectionWrapperStyle }>
<View style={ opacityStyle }>
<View style={ listItemStyle }>

View File

@ -145,10 +145,11 @@ class ConfigScreenComponent extends BaseScreenComponent {
render() {
const settings = this.props.settings;
const keys = Setting.keys(true, 'mobile');
let settingComps = [];
for (let key in settings) {
for (let i = 0; i < keys.length; i++) {
const key = keys[i];
if (key == 'sync.target') continue;
if (!settings.hasOwnProperty(key)) continue;
if (!Setting.isPublic(key)) continue;
const comp = this.settingToComponent(key, settings[key]);

View File

@ -386,9 +386,9 @@ Setting.metadata_ = {
86400: _('%d hours', 24),
};
}},
'showAdvancedOptions': { value: false, type: Setting.TYPE_BOOL, public: true, appTypes: ['mobile' ], label: () => _('Show advanced options') },
'noteVisiblePanes': { value: ['editor', 'viewer'], type: Setting.TYPE_ARRAY, public: false, appTypes: ['desktop'] },
'autoUpdateEnabled': { value: true, type: Setting.TYPE_BOOL, public: true, appTypes: ['desktop'], label: () => _('Automatically update the application') },
'showAdvancedOptions': { value: false, type: Setting.TYPE_BOOL, public: true, appTypes: ['mobile' ], label: () => _('Show advanced options') },
};
// Contains constants that are set by the application and