You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl: misc stubs for K-9 Mail
This makes the non composeUI parts of K-9 Mail mostly functional.
This commit is contained in:
@@ -6,6 +6,8 @@ import android.util.AttributeSet;
|
||||
|
||||
public class AutoCompleteTextView extends EditText {
|
||||
|
||||
private ListAdapter adapter;
|
||||
|
||||
public interface OnDismissListener {
|
||||
}
|
||||
|
||||
@@ -31,7 +33,13 @@ public class AutoCompleteTextView extends EditText {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void setAdapter(ListAdapter adapter) {}
|
||||
public void setAdapter(ListAdapter adapter) {
|
||||
this.adapter = adapter;
|
||||
}
|
||||
|
||||
public ListAdapter getAdapter() {
|
||||
return adapter;
|
||||
}
|
||||
|
||||
public void setThreshold(int threshold) {}
|
||||
|
||||
@@ -39,4 +47,10 @@ public class AutoCompleteTextView extends EditText {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int getListSelection() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void performCompletion() {}
|
||||
|
||||
}
|
||||
@@ -41,7 +41,8 @@ public class ImageView extends View {
|
||||
colorFilter = new PorterDuffColorFilter(a.getColor(com.android.internal.R.styleable.ImageView_tint, 0),
|
||||
PorterDuff.Mode.values()[a.getInt(com.android.internal.R.styleable.ImageView_tintMode, PorterDuff.Mode.SRC_IN.nativeInt)]);
|
||||
setImageDrawable(a.getDrawable(com.android.internal.R.styleable.ImageView_src));
|
||||
setScaleType(scaletype_from_int[a.getInt(com.android.internal.R.styleable.ImageView_scaleType, 3 /*CENTER*/)]);
|
||||
if (a.hasValue(com.android.internal.R.styleable.ImageView_scaleType))
|
||||
setScaleType(scaletype_from_int[a.getInt(com.android.internal.R.styleable.ImageView_scaleType, 3 /*CENTER*/)]);
|
||||
a.recycle();
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import android.content.res.ColorStateList;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Typeface;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Bundle;
|
||||
import android.text.BoringLayout;
|
||||
import android.text.Editable;
|
||||
import android.text.InputFilter;
|
||||
@@ -371,4 +372,14 @@ public class TextView extends View {
|
||||
public void setCompoundDrawableTintList(ColorStateList tint) {}
|
||||
|
||||
public void setIncludeFontPadding(boolean includePadding) {}
|
||||
|
||||
public float getLineSpacingExtra() {return 0.f;}
|
||||
|
||||
public Bundle getInputExtras(boolean key) {
|
||||
return new Bundle();
|
||||
}
|
||||
|
||||
public void setError(CharSequence error) {
|
||||
System.out.println("ERROR: " + error);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user