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:
parent
46978e1086
commit
1d263b2aee
@ -169,8 +169,7 @@ public class RepoDetailsActivity extends ActionBarActivity {
|
||||
Log.i(TAG, "Got this URL: " + url);
|
||||
Toast.makeText(this, "Got this URL: " + url, Toast.LENGTH_LONG).show();
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
|
||||
String packageName = getPackageName();
|
||||
intent.setClassName(packageName, packageName + ".ManageRepo");
|
||||
intent.setClass(this, ManageReposActivity.class);
|
||||
startActivity(intent);
|
||||
finish();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user