some code formatting
This commit is contained in:
@ -8,7 +8,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class IntentFragmentAdapter extends FragmentPagerAdapter {
|
||||
private List<IntentFragment> mTabs;
|
||||
private final List<IntentFragment> mTabs;
|
||||
|
||||
public IntentFragmentAdapter(FragmentManager fm) {
|
||||
super(fm);
|
||||
|
@ -74,7 +74,7 @@ public class IntentListView extends ListView {
|
||||
|
||||
private IntentAdapter mAdapter;
|
||||
private PackageManager mPackageManager;
|
||||
HashMap<ComponentName, Intent> mActivities = new HashMap<ComponentName, Intent>();
|
||||
private final HashMap<ComponentName, Intent> mActivities = new HashMap<ComponentName, Intent>();
|
||||
|
||||
public IntentListView(Context context) {
|
||||
super(context);
|
||||
@ -155,7 +155,6 @@ public class IntentListView extends ListView {
|
||||
if (hasCopyIntent || !activity.name.equals(SendToClipboard.class.getCanonicalName())) {
|
||||
activityList.remove(i);
|
||||
i--;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -172,8 +171,7 @@ public class IntentListView extends ListView {
|
||||
if (resolveInfo.activityInfo.packageName.equals(defaultTarget.activityInfo.packageName)
|
||||
&& resolveInfo.activityInfo.name.equals(defaultTarget.activityInfo.name)) {
|
||||
allActivities.add(0, resolveInfo);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
allActivities.add(resolveInfo);
|
||||
}
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ public class ShareActivity extends FragmentActivity implements ActionBar.TabList
|
||||
|
||||
Intent intent = getIntent();
|
||||
// from portallinks/permalinks we build 3 intents (share / geo / vanilla-intel-link)
|
||||
if (intent.getBooleanExtra("onlyShare", false) == false) {
|
||||
if (!intent.getBooleanExtra("onlyShare", false)) {
|
||||
mTitle = intent.getStringExtra("title");
|
||||
mLl = intent.getDoubleExtra("lat", 0) + "," + intent.getDoubleExtra("lng", 0);
|
||||
mZoom = intent.getIntExtra("zoom", 0);
|
||||
|
Reference in New Issue
Block a user