Skip to content

Commit

Permalink
Merge branch 'settings-p2' of https://github.com/percy-g2/haven into …
Browse files Browse the repository at this point in the history
…percy-g2-settings-p2
  • Loading branch information
n8fr8 committed Jan 12, 2018
2 parents 9e1ef72 + 6e658a8 commit e7fa68e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/org/havenapp/main/SettingsFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,12 @@ public void onCreatePreferencesFix(Bundle bundle, String s) {
switch (camera) {
case PreferenceManager.FRONT:
((ListPreference) findPreference(PreferenceManager.CAMERA)).setValueIndex(0);
findPreference(PreferenceManager.CAMERA).setSummary(PreferenceManager.FRONT);
break;
case PreferenceManager.BACK:
((ListPreference) findPreference(PreferenceManager.CAMERA)).setValueIndex(1);
findPreference(PreferenceManager.CAMERA).setSummary(PreferenceManager.BACK);
break;
case PreferenceManager.OFF:
((ListPreference) findPreference(PreferenceManager.CAMERA)).setValueIndex(2);
findPreference(PreferenceManager.CAMERA).setSummary(PreferenceManager.NONE);
break;
}

Expand Down
1 change: 1 addition & 0 deletions src/main/res/xml/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
android:entries="@array/camera"
android:entryValues="@array/camera_alias"
android:key="camera"
android:summary="%s"
android:title="@string/camera_prompt" />

<Preference
Expand Down

0 comments on commit e7fa68e

Please sign in to comment.