From 0f4326151f447f983bc2d27aa8dedb2e501a43d0 Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Thu, 17 Oct 2019 19:26:25 +0200 Subject: [PATCH] Added titles --- .../java/com/topjohnwu/magisk/redesign/log/LogFragment.kt | 6 ++++++ .../com/topjohnwu/magisk/redesign/module/ModuleFragment.kt | 6 ++++++ .../magisk/redesign/superuser/SuperuserFragment.kt | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/app/src/main/java/com/topjohnwu/magisk/redesign/log/LogFragment.kt b/app/src/main/java/com/topjohnwu/magisk/redesign/log/LogFragment.kt index 799331eb2..b5e670c24 100644 --- a/app/src/main/java/com/topjohnwu/magisk/redesign/log/LogFragment.kt +++ b/app/src/main/java/com/topjohnwu/magisk/redesign/log/LogFragment.kt @@ -10,4 +10,10 @@ class LogFragment : CompatFragment() { override val layoutRes = R.layout.fragment_log_md2 override val viewModel by viewModel() + override fun onStart() { + super.onStart() + + activity.title = resources.getString(R.string.section_log) + } + } \ No newline at end of file diff --git a/app/src/main/java/com/topjohnwu/magisk/redesign/module/ModuleFragment.kt b/app/src/main/java/com/topjohnwu/magisk/redesign/module/ModuleFragment.kt index bd963fb4f..51117413f 100644 --- a/app/src/main/java/com/topjohnwu/magisk/redesign/module/ModuleFragment.kt +++ b/app/src/main/java/com/topjohnwu/magisk/redesign/module/ModuleFragment.kt @@ -10,4 +10,10 @@ class ModuleFragment : CompatFragment override val layoutRes = R.layout.fragment_module_md2 override val viewModel by viewModel() + override fun onStart() { + super.onStart() + + activity.title = resources.getString(R.string.section_modules) + } + } \ No newline at end of file diff --git a/app/src/main/java/com/topjohnwu/magisk/redesign/superuser/SuperuserFragment.kt b/app/src/main/java/com/topjohnwu/magisk/redesign/superuser/SuperuserFragment.kt index 16f4ff578..cbaa8f459 100644 --- a/app/src/main/java/com/topjohnwu/magisk/redesign/superuser/SuperuserFragment.kt +++ b/app/src/main/java/com/topjohnwu/magisk/redesign/superuser/SuperuserFragment.kt @@ -10,4 +10,10 @@ class SuperuserFragment : CompatFragment() + override fun onStart() { + super.onStart() + + activity.title = resources.getString(R.string.section_superuser) + } + } \ No newline at end of file