run code formatter on ManageReposActivity and RepoListActivity

This should ease future comparisons after these two files are merged into
one.
This commit is contained in:
Hans-Christoph Steiner 2014-07-10 18:43:59 -04:00
parent 83072bc2c4
commit 7a08ab532f
2 changed files with 15 additions and 11 deletions

View File

@ -38,7 +38,6 @@ import android.widget.Toast;
import org.fdroid.fdroid.FDroid; import org.fdroid.fdroid.FDroid;
import org.fdroid.fdroid.FDroidApp; import org.fdroid.fdroid.FDroidApp;
import org.fdroid.fdroid.R; import org.fdroid.fdroid.R;
import org.fdroid.fdroid.R.string;
import org.fdroid.fdroid.views.fragments.RepoListFragment; import org.fdroid.fdroid.views.fragments.RepoListFragment;
import java.util.Locale; import java.util.Locale;
@ -47,9 +46,8 @@ public class ManageReposActivity extends ActionBarActivity {
/** /**
* If we have a new repo added, or the address of a repo has changed, then * If we have a new repo added, or the address of a repo has changed, then
* we when we're finished, we'll set this boolean to true in the intent * we when we're finished, we'll set this boolean to true in the intent that
* that we finish with, to signify that we want the main list of apps * we finish with, to signify that we want the main list of apps updated.
* updated.
*/ */
public static final String REQUEST_UPDATE = "update"; public static final String REQUEST_UPDATE = "update";
@ -63,12 +61,16 @@ public class ManageReposActivity extends ActionBarActivity {
FragmentManager fm = getSupportFragmentManager(); FragmentManager fm = getSupportFragmentManager();
if (fm.findFragmentById(android.R.id.content) == null) { if (fm.findFragmentById(android.R.id.content) == null) {
// Need to set a dummy view (which will get overridden by the fragment manager /*
// below) so that we can call setContentView(). This is a work around for * Need to set a dummy view (which will get overridden by the
// a (bug?) thing in 3.0, 3.1 which requires setContentView to be invoked before * fragment manager below) so that we can call setContentView().
// the actionbar is played with: * This is a work around for a (bug?) thing in 3.0, 3.1 which
// http://blog.perpetumdesign.com/2011/08/strange-case-of-dr-action-and-mr-bar.html * requires setContentView to be invoked before the actionbar is
setContentView( new LinearLayout(this) ); * played with:
* http://blog.perpetumdesign.com/2011/08/strange-case-of
* -dr-action-and-mr-bar.html
*/
setContentView(new LinearLayout(this));
listFragment = new RepoListFragment(); listFragment = new RepoListFragment();
fm.beginTransaction() fm.beginTransaction()

View File

@ -30,6 +30,7 @@ import android.widget.EditText;
import android.widget.ListView; import android.widget.ListView;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
import org.fdroid.fdroid.FDroidApp; import org.fdroid.fdroid.FDroidApp;
import org.fdroid.fdroid.Preferences; import org.fdroid.fdroid.Preferences;
import org.fdroid.fdroid.ProgressListener; import org.fdroid.fdroid.ProgressListener;
@ -44,12 +45,13 @@ import org.fdroid.fdroid.net.MDnsHelper.RepoScanListAdapter;
import org.fdroid.fdroid.views.RepoAdapter; import org.fdroid.fdroid.views.RepoAdapter;
import org.fdroid.fdroid.views.RepoDetailsActivity; import org.fdroid.fdroid.views.RepoDetailsActivity;
import javax.jmdns.ServiceInfo;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.net.URL; import java.net.URL;
import java.util.Date; import java.util.Date;
import java.util.Locale; import java.util.Locale;
import javax.jmdns.ServiceInfo;
public class RepoListFragment extends ListFragment public class RepoListFragment extends ListFragment
implements LoaderManager.LoaderCallbacks<Cursor>, RepoAdapter.EnabledListener { implements LoaderManager.LoaderCallbacks<Cursor>, RepoAdapter.EnabledListener {