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_INSTALLED = 1;
public static final int INDEX_CAN_UPDATE = 2; public static final int INDEX_CAN_UPDATE = 2;
private ViewPager pager; private ViewPager pager;
private FDroid parent; private FDroid parent;
private final ActionBar actionBar; private final ActionBar actionBar;
private Spinner actionBarSpinner = null; private Spinner actionBarSpinner = null;
@ -29,8 +29,8 @@ public class TabManager {
public TabManager(FDroid parent, ViewPager pager) { public TabManager(FDroid parent, ViewPager pager) {
actionBar = parent.getSupportActionBar(); actionBar = parent.getSupportActionBar();
this.parent = parent; this.parent = parent;
this.pager = pager; this.pager = pager;
} }
protected CharSequence getLabel(int index) { protected CharSequence getLabel(int index) {

View File

@ -275,7 +275,7 @@ public class DBHelper extends SQLiteOpenHelper {
addAppLabelToInstalledCache(db, oldVersion); addAppLabelToInstalledCache(db, oldVersion);
} }
/** /**
* Migrate repo list to new structure. (No way to change primary * Migrate repo list to new structure. (No way to change primary
* key in sqlite - table must be recreated). * key in sqlite - table must be recreated).
*/ */
@ -432,11 +432,11 @@ public class DBHelper extends SQLiteOpenHelper {
private void addAppLabelToInstalledCache(SQLiteDatabase db, int oldVersion) { private void addAppLabelToInstalledCache(SQLiteDatabase db, int oldVersion) {
if (oldVersion < 45) { if (oldVersion < 45) {
Log.i(TAG, "Adding applicationLabel to installed app table. " + Log.i(TAG, "Adding applicationLabel to installed app table. " +
"Turns out we will need to repopulate the cache after doing this, " + "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). " + "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."); "This will force the entire cache to be rebuilt, including app names.");
db.execSQL("DROP TABLE fdroid_installedApp;"); 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) { public static Uri getSearchUri(String keywords) {
return getContentUri().buildUpon() return getContentUri().buildUpon()
.appendPath(PATH_SEARCH) .appendPath(PATH_SEARCH)
.appendPath(keywords) .appendPath(keywords)
.build(); .build();
} }
public static String getApplicationLabel(Context context, String packageName) { public static String getApplicationLabel(Context context, String packageName) {
@ -133,9 +133,9 @@ public class InstalledAppProvider extends FDroidProvider {
@Override @Override
public Cursor query(Uri uri, String[] projection, String customSelection, String[] selectionArgs, String sortOrder) { public Cursor query(Uri uri, String[] projection, String customSelection, String[] selectionArgs, String sortOrder) {
if (sortOrder == null) { if (sortOrder == null) {
sortOrder = DataColumns.APPLICATION_LABEL; sortOrder = DataColumns.APPLICATION_LABEL;
} }
QuerySelection selection = new QuerySelection(customSelection, selectionArgs); QuerySelection selection = new QuerySelection(customSelection, selectionArgs);
switch (matcher.match(uri)) { switch (matcher.match(uri)) {