Added missing setContentView()
This commit is contained in:
@ -1,13 +1,15 @@
|
||||
package net.i2p.android.router.web;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import net.i2p.android.I2PActivityBase;
|
||||
import net.i2p.android.router.R;
|
||||
import android.os.Bundle;
|
||||
|
||||
public class WebActivity extends I2PActivityBase {
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_single_fragment);
|
||||
// Start with the base view
|
||||
if (savedInstanceState == null) {
|
||||
WebFragment f = new WebFragment();
|
||||
@ -18,7 +20,7 @@ public class WebActivity extends I2PActivityBase {
|
||||
} else
|
||||
f.setArguments(getIntent().getExtras());
|
||||
getSupportFragmentManager().beginTransaction()
|
||||
.add(R.id.main_fragment, f).commit();
|
||||
.add(R.id.fragment, f).commit();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user