summaryrefslogtreecommitdiffhomepage
path: root/app/src
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-07 18:43:52 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-07 18:43:52 -0500
commit4c96e55b495231091ba711952b6a2c1867599ada (patch)
treee7d20d3533ed2e41ebef28ea941ae750a4d202d6 /app/src
parent00a755f46f9e06c61cdcf2a5e31b3b3aaefe0207 (diff)
ProfileActivity: Make local variables final
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/wireguard/android/ProfileActivity.java4
1 files 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);
}