summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--java/com/android/dialer/calldetails/CallDetailsActivity.java1
-rw-r--r--java/com/android/dialer/calldetails/CallDetailsActivityCommon.java7
-rw-r--r--java/com/android/dialer/calldetails/OldCallDetailsActivity.java1
-rw-r--r--java/com/android/dialer/calllogutils/CallTypeIconsView.java2
4 files changed, 8 insertions, 3 deletions
diff --git a/java/com/android/dialer/calldetails/CallDetailsActivity.java b/java/com/android/dialer/calldetails/CallDetailsActivity.java
index f0f9711ca..4fab7fd85 100644
--- a/java/com/android/dialer/calldetails/CallDetailsActivity.java
+++ b/java/com/android/dialer/calldetails/CallDetailsActivity.java
@@ -125,6 +125,7 @@ public final class CallDetailsActivity extends CallDetailsActivityCommon {
@Override
public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
updateCallDetailsEntries(CallDetailsCursorLoader.toCallDetailsEntries(data));
+ activity.loadRttTranscriptAvailability();
}
@Override
diff --git a/java/com/android/dialer/calldetails/CallDetailsActivityCommon.java b/java/com/android/dialer/calldetails/CallDetailsActivityCommon.java
index 46705eb2a..15a010eba 100644
--- a/java/com/android/dialer/calldetails/CallDetailsActivityCommon.java
+++ b/java/com/android/dialer/calldetails/CallDetailsActivityCommon.java
@@ -125,11 +125,11 @@ abstract class CallDetailsActivityCommon extends AppCompatActivity {
PerformanceReport.recordClick(UiAction.Type.CLOSE_CALL_DETAIL_WITH_CANCEL_BUTTON);
finish();
});
- handleIntent(getIntent());
- setupRecyclerViewForEntries();
checkRttTranscriptAvailabilityListener =
DialerExecutorComponent.get(this)
.createUiListener(getFragmentManager(), "Query RTT transcript availability");
+ handleIntent(getIntent());
+ setupRecyclerViewForEntries();
}
@Override
@@ -152,6 +152,9 @@ abstract class CallDetailsActivityCommon extends AppCompatActivity {
EnrichedCallComponent.get(this)
.getEnrichedCallManager()
.requestAllHistoricalData(getNumber(), callDetailsEntries);
+ }
+
+ protected void loadRttTranscriptAvailability() {
checkRttTranscriptAvailabilityListener.listen(
this,
checkRttTranscriptAvailability(),
diff --git a/java/com/android/dialer/calldetails/OldCallDetailsActivity.java b/java/com/android/dialer/calldetails/OldCallDetailsActivity.java
index 1891265fb..c97436759 100644
--- a/java/com/android/dialer/calldetails/OldCallDetailsActivity.java
+++ b/java/com/android/dialer/calldetails/OldCallDetailsActivity.java
@@ -71,6 +71,7 @@ public final class OldCallDetailsActivity extends CallDetailsActivityCommon {
setCallDetailsEntries(
ProtoParsers.getTrusted(
intent, EXTRA_CALL_DETAILS_ENTRIES, CallDetailsEntries.getDefaultInstance()));
+ loadRttTranscriptAvailability();
}
@Override
diff --git a/java/com/android/dialer/calllogutils/CallTypeIconsView.java b/java/com/android/dialer/calllogutils/CallTypeIconsView.java
index b4cfe8140..d8c7889ee 100644
--- a/java/com/android/dialer/calllogutils/CallTypeIconsView.java
+++ b/java/com/android/dialer/calllogutils/CallTypeIconsView.java
@@ -335,7 +335,7 @@ public class CallTypeIconsView extends View {
r.getColor(R.color.icon_color_grey), PorterDuff.Mode.MULTIPLY);
iconId = R.drawable.quantum_ic_rtt_vd_theme_24;
- drawable = largeIcons ? r.getDrawable(iconId) : getScaledBitmap(context, iconId);
+ drawable = largeIcons ? r.getDrawable(iconId, null) : getScaledBitmap(context, iconId);
rttCall = drawable.mutate();
rttCall.setColorFilter(r.getColor(R.color.icon_color_grey), PorterDuff.Mode.MULTIPLY);