Replace a few tabs by space indents

This commit is contained in:
Daniel Martí 2014-10-16 17:18:08 +02:00
parent 2fd8982485
commit b14bffa1c5
3 changed files with 15 additions and 15 deletions

View File

@ -18,8 +18,8 @@ public class TabManager {
public static final int INDEX_INSTALLED = 1;
public static final int INDEX_CAN_UPDATE = 2;
private ViewPager pager;
private FDroid parent;
private ViewPager pager;
private FDroid parent;
private final ActionBar actionBar;
private Spinner actionBarSpinner = null;
@ -29,8 +29,8 @@ public class TabManager {
public TabManager(FDroid parent, ViewPager pager) {
actionBar = parent.getSupportActionBar();
this.parent = parent;
this.pager = pager;
this.parent = parent;
this.pager = pager;
}
protected CharSequence getLabel(int index) {

View File

@ -275,7 +275,7 @@ public class DBHelper extends SQLiteOpenHelper {
addAppLabelToInstalledCache(db, oldVersion);
}
/**
/**
* Migrate repo list to new structure. (No way to change primary
* key in sqlite - table must be recreated).
*/
@ -432,11 +432,11 @@ public class DBHelper extends SQLiteOpenHelper {
private void addAppLabelToInstalledCache(SQLiteDatabase db, int oldVersion) {
if (oldVersion < 45) {
Log.i(TAG, "Adding applicationLabel to installed app table. " +
"Turns out we will need to repopulate the cache after doing this, " +
"so just dropping and recreating the table (instead of altering and adding a column). " +
"This will force the entire cache to be rebuilt, including app names.");
"Turns out we will need to repopulate the cache after doing this, " +
"so just dropping and recreating the table (instead of altering and adding a column). " +
"This will force the entire cache to be rebuilt, including app names.");
db.execSQL("DROP TABLE fdroid_installedApp;");
createInstalledApp(db);
createInstalledApp(db);
}
}

View File

@ -85,9 +85,9 @@ public class InstalledAppProvider extends FDroidProvider {
public static Uri getSearchUri(String keywords) {
return getContentUri().buildUpon()
.appendPath(PATH_SEARCH)
.appendPath(keywords)
.build();
.appendPath(PATH_SEARCH)
.appendPath(keywords)
.build();
}
public static String getApplicationLabel(Context context, String packageName) {
@ -133,9 +133,9 @@ public class InstalledAppProvider extends FDroidProvider {
@Override
public Cursor query(Uri uri, String[] projection, String customSelection, String[] selectionArgs, String sortOrder) {
if (sortOrder == null) {
sortOrder = DataColumns.APPLICATION_LABEL;
}
if (sortOrder == null) {
sortOrder = DataColumns.APPLICATION_LABEL;
}
QuerySelection selection = new QuerySelection(customSelection, selectionArgs);
switch (matcher.match(uri)) {