fix sending repo via NFC

This was my stupid mistake: using a String for a class, instead of a .class
so that when ManageRepo was renamed to ManageRepoActivity, this broke.
This commit is contained in:
Hans-Christoph Steiner 2015-06-18 15:20:54 -04:00
parent 46978e1086
commit 1d263b2aee

View File

@ -169,8 +169,7 @@ public class RepoDetailsActivity extends ActionBarActivity {
Log.i(TAG, "Got this URL: " + url); Log.i(TAG, "Got this URL: " + url);
Toast.makeText(this, "Got this URL: " + url, Toast.LENGTH_LONG).show(); Toast.makeText(this, "Got this URL: " + url, Toast.LENGTH_LONG).show();
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
String packageName = getPackageName(); intent.setClass(this, ManageReposActivity.class);
intent.setClassName(packageName, packageName + ".ManageRepo");
startActivity(intent); startActivity(intent);
finish(); finish();
} }