ProfileActivity: Make local variables final

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Samuel Holland 2017-08-07 18:43:52 -05:00
parent 00a755f46f
commit 4c96e55b49

View File

@ -39,11 +39,11 @@ public class ProfileActivity extends Activity {
// This layout consists only of containers for fragments. // This layout consists only of containers for fragments.
setContentView(R.layout.profile_activity); setContentView(R.layout.profile_activity);
// Fill the layout with the initial set of fragments. // 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.add(R.id.list_fragment_container, new ProfileListFragment());
transaction.commit(); transaction.commit();
// Ensure the long-running service is started. This only needs to happen once. // 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); startService(intent);
} }