redesigned sharing tab, hooked to the backend, minor language upgrades, added status switch handling to the background task #41

Merged
s416084 merged 7 commits from sendFeedbackAndBugToDrawer into develop 2018-11-21 08:49:44 +01:00
3 changed files with 5 additions and 1 deletions
Showing only changes of commit b8eedc565c - Show all commits

View File

@ -138,6 +138,7 @@ public abstract class BaseActivity
if (!isTutor) {
navigationView.findViewById(R.id.nav_profile).setVisibility(View.GONE);
drawerNavigationView.getMenu().setGroupVisible(R.id.drawer_group_tutor, false);
}
}

View File

@ -45,6 +45,8 @@ public class SharingFragment extends PreferenceFragment {
locationLevelMapping.put(0, SharingLevel.PRESENCE.toString());
locationLevelMapping.put(1, SharingLevel.APPROXIMATED.toString());
locationLevelMapping.put(2, SharingLevel.EXACT.toString());
locationLevelMapping.put(3, SharingLevel.MANUAL.toString());
addPreferencesFromResource(R.layout.pref_sharing);
Preference manualStatus = findPreference("key_manual_status");

View File

@ -3,7 +3,8 @@ package com.uam.wmi.findmytutor.utils;
public enum SharingLevel {
PRESENCE("presence"),
APPROXIMATED("approximated"),
EXACT("exact");
EXACT("exact"),
MANUAL("manuak");
private final String text;