mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add TODO and fragment transaction
This commit is contained in:
parent
9895093b8f
commit
2e72b29fba
1 changed files with 9 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue