Skip to content

Commit

Permalink
Replace Retro Music with Metro
Browse files Browse the repository at this point in the history
  • Loading branch information
MuntashirAkon committed Oct 15, 2020
1 parent e5a27ca commit 2059a55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,7 @@ abstract class AbsRecyclerViewFragment<A : RecyclerView.Adapter<*>, LM : Recycle
navOptions
)
}
val color = ThemeStore.accentColor(requireContext())
val hexColor = String.format("#%06X", 0xFFFFFF and color)
val appName = HtmlCompat.fromHtml(
"Retro <span style='color:$hexColor';>Music</span>",
HtmlCompat.FROM_HTML_MODE_COMPACT
)
appNameText.text = appName
appNameText.text = getString(R.string.app_name)
}

private fun setUpRecyclerView() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,7 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
private void setUpTitle() {
toolbar.setNavigationOnClickListener(
v -> Navigation.findNavController(v).navigate(R.id.searchFragment, null, getNavOptions()));
int color = ThemeStore.Companion.accentColor(requireContext());
String hexColor = String.format("#%06X", 0xFFFFFF & color);
Spanned appName =
HtmlCompat.fromHtml(
"Retro <span style='color:" + hexColor + ";'>Music</span>",
HtmlCompat.FROM_HTML_MODE_COMPACT);
appNameText.setText(appName);
appNameText.setText(getString(R.string.app_name));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,7 @@ class HomeFragment :
navOptions
)
}
val color = ThemeStore.accentColor(requireContext())
val hexColor = String.format("#%06X", 0xFFFFFF and color)
val appName = HtmlCompat.fromHtml(
"Retro <span style='color:$hexColor';>Music</span>",
HtmlCompat.FROM_HTML_MODE_COMPACT
)
appNameText.text = appName
appNameText.text = getString(R.string.app_name)
}

private fun loadProfile() {
Expand Down

0 comments on commit 2059a55

Please sign in to comment.