Lint cleanups.

This commit is contained in:
akwizgran
2018-11-26 11:40:39 +00:00
parent 98633f5e7c
commit 56ac755e96
11 changed files with 39 additions and 39 deletions

View File

@@ -85,7 +85,6 @@ public class Localizer {
context.createConfigurationContext(conf);
} else
conf.locale = locale;
//noinspection deprecation
res.updateConfiguration(conf, res.getDisplayMetrics());
return context;
}

View File

@@ -431,17 +431,11 @@ public class CameraView extends SurfaceView implements SurfaceHolder.Callback,
@Override
public void surfaceCreated(SurfaceHolder holder) {
post(() -> {
try {
surfaceCreatedUi(holder);
} catch (CameraException e) {
logException(LOG, WARNING, e);
}
});
post(() -> surfaceCreatedUi(holder));
}
@UiThread
private void surfaceCreatedUi(SurfaceHolder holder) throws CameraException {
private void surfaceCreatedUi(SurfaceHolder holder) {
LOG.info("Surface created");
if (surface != null && surface != holder.getSurface()) {
LOG.info("Releasing old surface");

View File

@@ -81,7 +81,6 @@ public abstract class ThreadListControllerImpl<G extends NamedGroup, I extends T
}
@CallSuper
@SuppressWarnings("unchecked")
@Override
public void onActivityCreate(Activity activity) {
listener = (L) activity;