mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 12:49:55 +01:00
Statically import Level.WARNING
This commit is contained in:
committed by
Torsten Grote
parent
c4a42760c8
commit
b22f302fdd
@@ -19,7 +19,6 @@ import org.briarproject.briar.api.identity.AuthorManager;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.concurrent.Executor;
|
import java.util.concurrent.Executor;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
@@ -29,6 +28,7 @@ import androidx.lifecycle.LiveData;
|
|||||||
import androidx.lifecycle.MutableLiveData;
|
import androidx.lifecycle.MutableLiveData;
|
||||||
|
|
||||||
import static java.util.Arrays.asList;
|
import static java.util.Arrays.asList;
|
||||||
|
import static java.util.logging.Level.WARNING;
|
||||||
import static java.util.logging.Logger.getLogger;
|
import static java.util.logging.Logger.getLogger;
|
||||||
import static org.briarproject.bramble.util.AndroidUtils.getSupportedImageContentTypes;
|
import static org.briarproject.bramble.util.AndroidUtils.getSupportedImageContentTypes;
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ class SettingsViewModel extends AndroidViewModel {
|
|||||||
ownIdentityInfo.postValue(
|
ownIdentityInfo.postValue(
|
||||||
new OwnIdentityInfo(localAuthor, authorInfo));
|
new OwnIdentityInfo(localAuthor, authorInfo));
|
||||||
} catch (DbException e) {
|
} catch (DbException e) {
|
||||||
LogUtils.logException(LOG, Level.WARNING, e);
|
LogUtils.logException(LOG, WARNING, e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -87,7 +87,7 @@ class SettingsViewModel extends AndroidViewModel {
|
|||||||
try {
|
try {
|
||||||
trySetAvatar(uri);
|
trySetAvatar(uri);
|
||||||
} catch (IOException | DbException e) {
|
} catch (IOException | DbException e) {
|
||||||
LogUtils.logException(LOG, Level.WARNING, e);
|
LogUtils.logException(LOG, WARNING, e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user