Merge "Update customize button title when state changed" into rvc-dev am: b11a46cfd5

Change-Id: Ida02e3e49ab0210d8494d6e919b5048895f1eae0
This commit is contained in:
TreeHugger Robot
2020-03-27 03:28:47 +00:00
committed by Automerger Merge Worker
5 changed files with 49 additions and 4 deletions

View File

@@ -222,7 +222,7 @@ public class PanelFragment extends Fragment {
mDoneButton.setOnClickListener(getCloseListener());
if (mPanel.isCustomizedButtonUsed()) {
final CharSequence customTitle = mPanel.getCustomButtonTitle();
final CharSequence customTitle = mPanel.getCustomizedButtonTitle();
if (TextUtils.isEmpty(customTitle)) {
mSeeMoreButton.setVisibility(View.GONE);
} else {
@@ -428,6 +428,7 @@ public class PanelFragment extends Fragment {
ThreadUtils.postOnMainThread(() -> {
mSeeMoreButton.setVisibility(
mPanel.isCustomizedButtonUsed() ? View.VISIBLE : View.GONE);
mSeeMoreButton.setText(mPanel.getCustomizedButtonTitle());
});
}