浏览代码

ProfileActivity: Make local variables final

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
master
Samuel Holland 7 年前
父节点
当前提交
4c96e55b49
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      app/src/main/java/com/wireguard/android/ProfileActivity.java

+ 2
- 2
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);
}



正在加载...
取消
保存