redesigned sharing tab, hooked to the backend, minor language upgrades, added status switch handling to the background task #41
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user