mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Add TODOs
This commit is contained in:
parent
cf583c5a77
commit
f4cef8da1b
1 changed files with 16 additions and 13 deletions
|
|
@ -216,6 +216,10 @@ public class ShareActivity
|
|||
.commit();
|
||||
}
|
||||
|
||||
/**
|
||||
* Send categories to modifications queue after they are selected
|
||||
* @param categories categories selected
|
||||
*/
|
||||
@Override
|
||||
public void onCategoriesSave(List<String> categories) {
|
||||
if (categories.size() > 0) {
|
||||
|
|
@ -253,10 +257,6 @@ public class ShareActivity
|
|||
finish();
|
||||
}
|
||||
|
||||
protected boolean isNearbyUpload() {
|
||||
return isNearbyUpload;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
|
@ -309,8 +309,6 @@ public class ShareActivity
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
zoomInButton = (FloatingActionButton) findViewById(R.id.media_upload_zoom_in);
|
||||
try {
|
||||
zoomInButton.setOnClickListener(new View.OnClickListener() {
|
||||
|
|
@ -345,6 +343,7 @@ public class ShareActivity
|
|||
}
|
||||
}
|
||||
|
||||
//TODO: We should only use snackbar for location permissions, since storage permissions are MANDATORY
|
||||
// Check storage permissions if marshmallow or newer
|
||||
if (useNewPermissions && (!storagePermitted || !locationPermitted)) {
|
||||
if (!storagePermitted && !locationPermitted) {
|
||||
|
|
@ -404,7 +403,8 @@ public class ShareActivity
|
|||
}
|
||||
});
|
||||
}
|
||||
/*
|
||||
|
||||
/**
|
||||
* Function to display the zoom and map FAB
|
||||
*/
|
||||
private void showFABMenu(){
|
||||
|
|
@ -419,8 +419,8 @@ public class ShareActivity
|
|||
zoomInButton.animate().translationY(-getResources().getDimension(R.dimen.first_fab));
|
||||
}
|
||||
|
||||
/*
|
||||
* function to close the zoom and map FAB
|
||||
/**
|
||||
* Function to close the zoom and map FAB
|
||||
*/
|
||||
private void closeFABMenu(){
|
||||
isFABOpen=false;
|
||||
|
|
@ -429,7 +429,6 @@ public class ShareActivity
|
|||
zoomInButton.animate().translationY(0).setListener(new Animator.AnimatorListener() {
|
||||
@Override
|
||||
public void onAnimationStart(Animator animator) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -438,21 +437,25 @@ public class ShareActivity
|
|||
maps_fragment.setVisibility(View.GONE);
|
||||
zoomInButton.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAnimationCancel(Animator animator) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAnimationRepeat(Animator animator) {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if upload was initiated via Nearby
|
||||
* @return true if upload was initiated via Nearby
|
||||
*/
|
||||
protected boolean isNearbyUpload() {
|
||||
return isNearbyUpload;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRequestPermissionsResult(int requestCode,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue