mirror of https://github.com/tasks/tasks
Tweak styles, remove error catching controls
parent
1522dae01b
commit
694abf3f0a
@ -1,55 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2012 Todoroo Inc
|
||||
*
|
||||
* See the file "LICENSE" for the full license governing this code.
|
||||
*/
|
||||
package com.todoroo.astrid.ui;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.EditText;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class ErrorCatchingEditText extends EditText {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(ErrorCatchingEditText.class);
|
||||
|
||||
public ErrorCatchingEditText(Context context, AttributeSet attrs,
|
||||
int defStyle) {
|
||||
super(context, attrs, defStyle);
|
||||
|
||||
}
|
||||
|
||||
public ErrorCatchingEditText(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
|
||||
}
|
||||
|
||||
public ErrorCatchingEditText(Context context) {
|
||||
super(context);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getExtendedPaddingTop() {
|
||||
try {
|
||||
return super.getExtendedPaddingTop();
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getExtendedPaddingBottom() {
|
||||
try {
|
||||
return super.getExtendedPaddingBottom();
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) 2012 Todoroo Inc
|
||||
*
|
||||
* See the file "LICENSE" for the full license governing this code.
|
||||
*/
|
||||
package com.todoroo.astrid.ui;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.Spinner;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class ErrorCatchingSpinner extends Spinner {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(ErrorCatchingSpinner.class);
|
||||
|
||||
public ErrorCatchingSpinner(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDetachedFromWindow() {
|
||||
try {
|
||||
super.onDetachedFromWindow();
|
||||
} catch (IllegalArgumentException e) {
|
||||
// Bad times
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -1,6 +1,5 @@
|
||||
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?attr/asAbBackgroundColor"
|
||||
android:minHeight="?attr/actionBarSize" />
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="?attr/asAbBackgroundColor" />
|
||||
|
Loading…
Reference in New Issue