Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Unified Diff: webrtc/examples/androidapp/src/org/appspot/apprtc/CaptureQualityController.java

Issue 2504643002: Fix Android lint error. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/examples/androidapp/res/values/strings.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/examples/androidapp/src/org/appspot/apprtc/CaptureQualityController.java
diff --git a/webrtc/examples/androidapp/src/org/appspot/apprtc/CaptureQualityController.java b/webrtc/examples/androidapp/src/org/appspot/apprtc/CaptureQualityController.java
index 5476ee9ecbd1862528848cd88e648f63deb676b8..82cf3385039776cb2795579e60664b5ffda244ae 100644
--- a/webrtc/examples/androidapp/src/org/appspot/apprtc/CaptureQualityController.java
+++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/CaptureQualityController.java
@@ -12,13 +12,11 @@ package org.appspot.apprtc;
import android.widget.SeekBar;
import android.widget.TextView;
-
-import org.webrtc.CameraEnumerationAndroid.CaptureFormat;
-
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
+import org.webrtc.CameraEnumerationAndroid.CaptureFormat;
/**
* Control capture format based on a seekbar listener.
@@ -90,7 +88,9 @@ public class CaptureQualityController implements SeekBar.OnSeekBarChangeListener
width = bestFormat.width;
height = bestFormat.height;
framerate = calculateFramerate(targetBandwidth, bestFormat);
- captureFormatText.setText(width + "x" + height + " @ " + framerate + "fps");
+ captureFormatText.setText(
+ String.format(captureFormatText.getContext().getString(R.string.format_description), width,
+ height, framerate));
}
@Override
« no previous file with comments | « webrtc/examples/androidapp/res/values/strings.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698