Add TODO and fragment transaction

This commit is contained in:
misaochan 2017-06-02 01:25:17 +10:00
parent 9895093b8f
commit 2e72b29fba

View file

@ -121,9 +121,17 @@ public class NearbyActivity extends NavigationBaseActivity {
startLookingForNearby();
} else {
//If permission not granted, display notification that Nearby Places cannot be displayed
/**
int duration = Toast.LENGTH_LONG;
Toast toast = Toast.makeText(this, R.string.no_location_permission, duration);
toast.show();
toast.show();*/
//TODO: Open a fragment saying permissions not granted instead
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
Fragment fragment = new NoPermissionsFragment();
fragment.setArguments(bundle);
fragmentTransaction.replace(R.id.container, fragment);
fragmentTransaction.commit();
}
}
}