From 295334d3ac075ed7d9ec6647d3ffbfe7736f3e15 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 23 Jul 2017 00:47:54 +0800 Subject: [PATCH] Preserve toolbar elevation when restart activity --- app/src/main/java/com/topjohnwu/magisk/LogFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/topjohnwu/magisk/LogFragment.java b/app/src/main/java/com/topjohnwu/magisk/LogFragment.java index eb3793f76..d9955a7cc 100644 --- a/app/src/main/java/com/topjohnwu/magisk/LogFragment.java +++ b/app/src/main/java/com/topjohnwu/magisk/LogFragment.java @@ -29,6 +29,8 @@ public class LogFragment extends Fragment { View v = inflater.inflate(R.layout.fragment_log, container, false); unbinder = ButterKnife.bind(this, v); + ((MainActivity) getActivity()).toolbar.setElevation(0); + TabFragmentAdapter adapter = new TabFragmentAdapter(getChildFragmentManager()); if (getApplication().isSuClient) {