Modified extra whitespace lines in source code

Code is much easier to read if there isn't too much of a gap between
lines. Primarily converted multi-line gaps into single line gaps.
This commit is contained in:
Anirudh S 2016-10-30 23:01:44 +05:30
parent a685ecf2c3
commit 94e8c991ee
34 changed files with 5 additions and 76 deletions

View file

@ -78,7 +78,6 @@ public class MultipleShareActivity
public void onItemClick(AdapterView<?> adapterView, View view, int index, long item) {
showDetail(index);
}
public void OnMultipleUploadInitiated() {
@ -201,10 +200,8 @@ public class MultipleShareActivity
getSupportFragmentManager().addOnBackStackChangedListener(this);
requestAuthToken();
}
@Override
protected void onDestroy() {
super.onDestroy();
@ -262,10 +259,8 @@ public class MultipleShareActivity
setTitle(getResources().getQuantityString(R.plurals.multiple_uploads_title, photosList.size(), photosList.size()));
uploadController.prepareService();
}
}
@Override
protected void onAuthFailure() {
Toast failureToast = Toast.makeText(this, R.string.authentication_failed, Toast.LENGTH_LONG);

View file

@ -92,7 +92,6 @@ public class MultipleUploadListFragment extends Fragment {
}
return view;
}
}
@ -117,8 +116,8 @@ public class MultipleUploadListFragment extends Fragment {
int picWidth = Math.min((int) Math.sqrt(screenWidth * screenHeight / count), screenWidth);
picWidth = Math.min((int)(192 * screenMetrics.density), Math.max((int) (120 * screenMetrics.density), picWidth / 48 * 48));
int picHeight = Math.min(picWidth, (int)(192 * screenMetrics.density)); // Max Height is same as Contributions list
return new Point(picWidth, picHeight);
return new Point(picWidth, picHeight);
}
public void notifyDatasetChanged() {
@ -144,7 +143,6 @@ public class MultipleUploadListFragment extends Fragment {
photosGrid = (GridView)view.findViewById(R.id.multipleShareBackground);
baseTitle = (EditText)view.findViewById(R.id.multipleBaseTitle);
photosAdapter = new PhotoDisplayAdapter();
photosGrid.setAdapter(photosAdapter);
photosGrid.setOnItemClickListener((AdapterView.OnItemClickListener)getActivity());
@ -169,7 +167,6 @@ public class MultipleUploadListFragment extends Fragment {
}
}
detailProvider.notifyDatasetChanged();
}
public void afterTextChanged(Editable editable) {
@ -207,6 +204,5 @@ public class MultipleUploadListFragment extends Fragment {
setHasOptionsMenu(true);
}
}

View file

@ -241,8 +241,8 @@ public class ShareActivity
if(savedInstanceState != null) {
contribution = savedInstanceState.getParcelable("contribution");
}
requestAuthToken();
requestAuthToken();
Log.d(TAG, "Uri: " + mediaUriString);
Log.d(TAG, "Ext storage dir: " + Environment.getExternalStorageDirectory());

View file

@ -133,7 +133,6 @@ public class SingleUploadFragment extends Fragment {
return rootView;
}
@Override
public void onAttach(Activity activity) {
super.onAttach(activity);

View file

@ -79,7 +79,6 @@ public class UploadController {
public void startUpload(final Contribution contribution, final ContributionUploadProgress onComplete) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(activity);
if(TextUtils.isEmpty(contribution.getCreator())) {
@ -93,7 +92,6 @@ public class UploadController {
String license = prefs.getString(Prefs.DEFAULT_LICENSE, Prefs.Licenses.CC_BY_SA);
contribution.setLicense(license);
//FIXME: Add permission request here. Only executeAsyncTask if permission has been granted
Utils.executeAsyncTask(new AsyncTask<Void, Void, Contribution>() {

View file

@ -146,7 +146,6 @@ public class UploadService extends HandlerService<Contribution> {
default:
throw new IllegalArgumentException("Unknown value for what");
}
}
private boolean freshStart = true;
@ -235,7 +234,6 @@ public class UploadService extends HandlerService<Contribution> {
curProgressNotification = null;
String resultStatus = result.getString("/api/upload/@result");
if(!resultStatus.equals("Success")) {
String errorCode = result.getString("/api/error/@code");
@ -281,7 +279,6 @@ public class UploadService extends HandlerService<Contribution> {
stopForeground(true);
}
}
}
private void showFailedNotification(Contribution contribution) {