new profile ui #134
@ -29,7 +29,7 @@
|
|||||||
</value>
|
</value>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8 (1)" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
@ -266,7 +266,6 @@ public abstract class BaseActivity
|
|||||||
setUpNav();
|
setUpNav();
|
||||||
|
|
||||||
actionBarDrawerToggle.syncState();
|
actionBarDrawerToggle.syncState();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -423,7 +422,7 @@ public abstract class BaseActivity
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateNavigationBarState() {
|
public void updateNavigationBarState() {
|
||||||
int actionId = getNavigationMenuItemId();
|
int actionId = getNavigationMenuItemId();
|
||||||
selectBottomNavigationBarItem(actionId);
|
selectBottomNavigationBarItem(actionId);
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@ import android.app.AlertDialog;
|
|||||||
import android.app.FragmentTransaction;
|
import android.app.FragmentTransaction;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
|
import android.graphics.drawable.ColorDrawable;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.preference.ListPreference;
|
import android.preference.ListPreference;
|
||||||
import android.preference.Preference;
|
import android.preference.Preference;
|
||||||
@ -269,11 +270,10 @@ public class SharingFragment extends PreferenceFragment implements SharedPrefere
|
|||||||
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
|
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
|
||||||
fragmentTransaction.hide(SharingFragment.this);
|
fragmentTransaction.hide(SharingFragment.this);
|
||||||
fragmentTransaction.commit();
|
fragmentTransaction.commit();
|
||||||
|
((MapActivity) getActivity()).updateNavigationBarState();
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
statusSwitch.setOnPreferenceChangeListener((preference, newValue) -> {
|
statusSwitch.setOnPreferenceChangeListener((preference, newValue) -> true);
|
||||||
return true;
|
|
||||||
});
|
|
||||||
/** Status list change listener **/
|
/** Status list change listener **/
|
||||||
statusList.setOnPreferenceChangeListener((preference, newValue) -> {
|
statusList.setOnPreferenceChangeListener((preference, newValue) -> {
|
||||||
ListPreference lp = (ListPreference) preference;
|
ListPreference lp = (ListPreference) preference;
|
||||||
|
@ -231,6 +231,7 @@ public class UsersListFragment extends Fragment {
|
|||||||
List<User> list = new ArrayList<User>();
|
List<User> list = new ArrayList<User>();
|
||||||
list.add(user);
|
list.add(user);
|
||||||
((MapActivity) getActivity()).filterMarkers(list);
|
((MapActivity) getActivity()).filterMarkers(list);
|
||||||
|
((MapActivity) getActivity()).updateNavigationBarState();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
alertDialog = alertDialogBuilderUserInput.create();
|
alertDialog = alertDialogBuilderUserInput.create();
|
||||||
|
Loading…
Reference in New Issue
Block a user