mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
use proper logging API
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
c461ddca5b
commit
b1a60b6cf1
@ -104,6 +104,8 @@ import retrofit2.Response;
|
|||||||
|
|
||||||
@AutoInjector(NextcloudTalkApplication.class)
|
@AutoInjector(NextcloudTalkApplication.class)
|
||||||
public class ProfileController extends BaseController {
|
public class ProfileController extends BaseController {
|
||||||
|
private static final String TAG = ProfileController.class.getSimpleName();
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
NcApi ncApi;
|
NcApi ncApi;
|
||||||
|
|
||||||
@ -450,7 +452,7 @@ public class ProfileController extends BaseController {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onNext(@NotNull GenericOverall userProfileOverall) {
|
public void onNext(@NotNull GenericOverall userProfileOverall) {
|
||||||
Log.d("ProfileController", "Successfully saved: " + item.text + " as " + item.field);
|
Log.d(TAG, "Successfully saved: " + item.text + " as " + item.field);
|
||||||
|
|
||||||
if (item.field == Field.DISPLAYNAME) {
|
if (item.field == Field.DISPLAYNAME) {
|
||||||
((TextView) getActivity().findViewById(R.id.userinfo_fullName)).setText(item.text);
|
((TextView) getActivity().findViewById(R.id.userinfo_fullName)).setText(item.text);
|
||||||
@ -460,7 +462,7 @@ public class ProfileController extends BaseController {
|
|||||||
@Override
|
@Override
|
||||||
public void onError(@NotNull Throwable e) {
|
public void onError(@NotNull Throwable e) {
|
||||||
item.text = userInfo.getValueByField(item.field);
|
item.text = userInfo.getValueByField(item.field);
|
||||||
Log.e("ProfileController", "Failed to saved: " + item.text + " as " + item.field);
|
Log.e(TAG, "Failed to saved: " + item.text + " as " + item.field, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -537,10 +539,10 @@ public class ProfileController extends BaseController {
|
|||||||
try (FileOutputStream out = new FileOutputStream(file)) {
|
try (FileOutputStream out = new FileOutputStream(file)) {
|
||||||
bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
|
bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
Log.e(TAG, "Error compressing bitmap", e);
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
Log.e(TAG, "Error creating temporary avatar image", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file == null) {
|
if (file == null) {
|
||||||
@ -626,13 +628,13 @@ public class ProfileController extends BaseController {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onNext(@NotNull GenericOverall userProfileOverall) {
|
public void onNext(@NotNull GenericOverall userProfileOverall) {
|
||||||
Log.d("ProfileController", "Successfully saved: " + item.scope + " as " + item.field);
|
Log.d(TAG, "Successfully saved: " + item.scope + " as " + item.field);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(@NotNull Throwable e) {
|
public void onError(@NotNull Throwable e) {
|
||||||
item.scope = userInfo.getScopeByField(item.field);
|
item.scope = userInfo.getScopeByField(item.field);
|
||||||
Log.e("ProfileController", "Failed to saved: " + item.scope + " as " + item.field);
|
Log.e(TAG, "Failed to saved: " + item.scope + " as " + item.field, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user