revered sharing tab UI disabling to wait for api response, minor fix

This commit is contained in:
marcin.jedynski 2019-01-06 22:55:36 +01:00
parent 2d93b23197
commit 3e7e77a430

View File

@ -216,16 +216,8 @@ public class SharingFragment extends PreferenceFragment implements SharedPrefere
locationMode.setOnPreferenceChangeListener((preference, newValue) -> {
PrefUtils.storeLocationMode(getApplicationContext(), locationLevelMapping.get(Integer.parseInt((String) newValue)));
// if(PrefUtils.getLocationLevel(getApplicationContext()).equals(SharingLevel.MANUAL.toString()) && predefinedCoordsList.isEmpty()){
/* Log.d("OTSOCHOZI","pyklo");
}else{
Log.d("OTSOCHOZI","niepyklo");*/
((MapActivity) getActivity()).stopBackgroundLocalizationTask();
((MapActivity) getActivity()).startBackgroundLocalizationTask();
// }
if (PrefUtils.getLocationLevel(getApplicationContext()).equals(SharingLevel.MANUAL.toString())) {
if (!predefinedCoordsList.isEmpty()) {
preferenceCategory.addPreference(manualLocationList);