diff options
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r-- | app/src/main/java/com/wireguard/android/ProfileActivity.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/com/wireguard/android/ProfileActivity.java b/app/src/main/java/com/wireguard/android/ProfileActivity.java index 5daaf54c..ab4022c1 100644 --- a/app/src/main/java/com/wireguard/android/ProfileActivity.java +++ b/app/src/main/java/com/wireguard/android/ProfileActivity.java @@ -1,6 +1,7 @@ package com.wireguard.android; import android.app.Activity; +import android.app.FragmentTransaction; import android.content.ComponentName; import android.content.Context; import android.content.Intent; @@ -35,7 +36,12 @@ public class ProfileActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + // This layout consists only of containers for fragments. setContentView(R.layout.profile_activity); + // Fill the layout with the initial set of fragments. + FragmentTransaction transaction = getFragmentManager().beginTransaction(); + transaction.add(R.id.list_fragment_container, new ProfileListFragment()); + transaction.commit(); // Ensure the long-running service is started. This only needs to happen once. Intent intent = new Intent(this, ProfileService.class); startService(intent); |