setNavigationSelection error fixed when ModulePart appended to fragment data
This commit is contained in:
@@ -472,9 +472,13 @@ public class MainActivity extends AppCompatActivity
|
|||||||
|
|
||||||
private void setNavigationSelection() {
|
private void setNavigationSelection() {
|
||||||
MenuItem item = null;
|
MenuItem item = null;
|
||||||
|
int dotPos = mFragmentData.indexOf(".");
|
||||||
|
String moduleId = mFragmentData;
|
||||||
|
if (dotPos != -1)
|
||||||
|
moduleId = moduleId.substring(0, dotPos);
|
||||||
switch (mFragmentPage) {
|
switch (mFragmentPage) {
|
||||||
case FRAGMENT_MODULES_DETAILS:
|
case FRAGMENT_MODULES_DETAILS:
|
||||||
getKVV().modules().list().find(mFragmentData, success -> {
|
getKVV().modules().list().find(moduleId, success -> {
|
||||||
int size = mNavigationView.getMenu().size();
|
int size = mNavigationView.getMenu().size();
|
||||||
//noinspection ConstantConditions
|
//noinspection ConstantConditions
|
||||||
String title = success == null ? null : success.title;
|
String title = success == null ? null : success.title;
|
||||||
|
|||||||
Reference in New Issue
Block a user