Style all switches equally, without indentation
This commit is contained in:
parent
d6a8ef9e59
commit
e1a6e2386f
@ -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();
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user