Remove unnecessary spaces
This commit is contained in:
parent
c6c472402d
commit
2bd05dec38
@ -119,7 +119,7 @@ public class ApkProvider extends FDroidProvider {
|
|||||||
return cursorToList(cursor);
|
return cursorToList(cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Apk get(Context context, Uri uri ) {
|
public static Apk get(Context context, Uri uri) {
|
||||||
return get(context, uri, DataColumns.ALL);
|
return get(context, uri, DataColumns.ALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ public class AppProvider extends FDroidProvider {
|
|||||||
ContentResolver resolver = context.getContentResolver();
|
ContentResolver resolver = context.getContentResolver();
|
||||||
Uri uri = getContentUri();
|
Uri uri = getContentUri();
|
||||||
String[] projection = { DataColumns.CATEGORIES };
|
String[] projection = { DataColumns.CATEGORIES };
|
||||||
Cursor cursor = resolver.query(uri, projection, null, null, null );
|
Cursor cursor = resolver.query(uri, projection, null, null, null);
|
||||||
Set<String> categorySet = new HashSet<String>();
|
Set<String> categorySet = new HashSet<String>();
|
||||||
if (cursor != null) {
|
if (cursor != null) {
|
||||||
if (cursor.getCount() > 0) {
|
if (cursor.getCount() > 0) {
|
||||||
|
@ -142,7 +142,7 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||||||
try {
|
try {
|
||||||
// http://stackoverflow.com/questions/805363/how-do-i-rename-a-column-in-a-sqlite-database-table#805508
|
// http://stackoverflow.com/questions/805363/how-do-i-rename-a-column-in-a-sqlite-database-table#805508
|
||||||
String tempTableName = TABLE_REPO + "__temp__";
|
String tempTableName = TABLE_REPO + "__temp__";
|
||||||
db.execSQL("ALTER TABLE " + TABLE_REPO + " RENAME TO " + tempTableName + ";" );
|
db.execSQL("ALTER TABLE " + TABLE_REPO + " RENAME TO " + tempTableName + ";");
|
||||||
|
|
||||||
// I realise this is available in the CREATE_TABLE_REPO above,
|
// I realise this is available in the CREATE_TABLE_REPO above,
|
||||||
// however I have a feeling that it will need to be the same as the
|
// however I have a feeling that it will need to be the same as the
|
||||||
|
@ -68,7 +68,7 @@ public class RepoProvider extends FDroidProvider {
|
|||||||
Uri uri = RepoProvider.getContentUri();
|
Uri uri = RepoProvider.getContentUri();
|
||||||
String[] args = { fieldValue };
|
String[] args = { fieldValue };
|
||||||
Cursor cursor = resolver.query(
|
Cursor cursor = resolver.query(
|
||||||
uri, projection, fieldName + " = ?", args, null );
|
uri, projection, fieldName + " = ?", args, null);
|
||||||
return cursorToList(cursor);
|
return cursorToList(cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ public class RepoProvider extends FDroidProvider {
|
|||||||
|
|
||||||
Uri uri = getContentUri(repo.getId());
|
Uri uri = getContentUri(repo.getId());
|
||||||
String[] args = { Long.toString(repo.getId()) };
|
String[] args = { Long.toString(repo.getId()) };
|
||||||
resolver.update(uri, values, DataColumns._ID + " = ?", args );
|
resolver.update(uri, values, DataColumns._ID + " = ?", args);
|
||||||
repo.setValues(values);
|
repo.setValues(values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ public class WifiQrFragment extends Fragment {
|
|||||||
* custom URI schemes, so we have to use http:// or https:// :-(
|
* custom URI schemes, so we have to use http:// or https:// :-(
|
||||||
*/
|
*/
|
||||||
Uri sharingUri = Utils.getSharingUri(getActivity(), FDroidApp.repo);
|
Uri sharingUri = Utils.getSharingUri(getActivity(), FDroidApp.repo);
|
||||||
String qrUriString = ( scheme + sharingUri.getHost() ).toUpperCase(Locale.ENGLISH);
|
String qrUriString = (scheme + sharingUri.getHost()).toUpperCase(Locale.ENGLISH);
|
||||||
if (sharingUri.getPort() != 80) {
|
if (sharingUri.getPort() != 80) {
|
||||||
qrUriString += ":" + sharingUri.getPort();
|
qrUriString += ":" + sharingUri.getPort();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user