From 141e1f431e435fe84dde561114978e4cfe3b1448 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Mon, 7 Aug 2017 18:43:52 -0500 Subject: ProfileActivity: Make local variables final --- app/src/main/java/com/wireguard/android/ProfileActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/wireguard/android/ProfileActivity.java b/app/src/main/java/com/wireguard/android/ProfileActivity.java index ab4022c1..699d394c 100644 --- a/app/src/main/java/com/wireguard/android/ProfileActivity.java +++ b/app/src/main/java/com/wireguard/android/ProfileActivity.java @@ -39,11 +39,11 @@ public class ProfileActivity extends Activity { // 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(); + final 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); + final Intent intent = new Intent(this, ProfileService.class); startService(intent); } -- cgit v1.2.3