Style all switches equally, without indentation

This commit is contained in:
Daniel Martí 2015-04-16 18:41:39 +02:00
parent d6a8ef9e59
commit e1a6e2386f
15 changed files with 257 additions and 260 deletions

View File

@ -91,12 +91,10 @@ public abstract class FDroidProvider extends ContentProvider {
case CODE_LIST:
type = "dir";
break;
case CODE_SINGLE:
default:
type = "item";
break;
}
return "vnd.android.cursor." + type + "/vnd." + AUTHORITY + "." + getProviderName();
}

View File

@ -32,19 +32,18 @@ public class AppListFragmentPagerAdapter extends FragmentPagerAdapter {
@Override
public Fragment getItem(int i) {
if (i == 0) {
switch (i) {
case 0:
return new AvailableAppsFragment();
}
if (i == 1) {
case 1:
return new InstalledAppsFragment();
}
default:
return new CanUpdateAppsFragment();
}
}
@Override
public int getCount() {
return 3;
}
public int getCount() { return 3; }
@Override
public String getPageTitle(int i) {