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: add misc stubs for Open Sudoku
This commit is contained in:
committed by
Mis012
parent
1fb5be92dc
commit
e5a6ee2b55
@@ -572,4 +572,6 @@ public class Activity extends ContextThemeWrapper implements Window.Callback {
|
|||||||
public void reportFullyDrawn() {}
|
public void reportFullyDrawn() {}
|
||||||
public void setVisible(boolean visible) {}
|
public void setVisible(boolean visible) {}
|
||||||
public Uri getReferrer() { return null; }
|
public Uri getReferrer() { return null; }
|
||||||
|
public void setDefaultKeyMode(int flag) {}
|
||||||
|
public void registerForContextMenu(View view) {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ public class Html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Spanned fromHtml(String source) {
|
public static Spanned fromHtml(String source) {
|
||||||
|
return Html.fromHtml(source, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Spanned fromHtml(String source, int flags) {
|
||||||
return new SpannableString(source.replace("<br/>", "\n")
|
return new SpannableString(source.replace("<br/>", "\n")
|
||||||
.replace("<br>", "\n")
|
.replace("<br>", "\n")
|
||||||
.replace(" ", " "));
|
.replace(" ", " "));
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
package android.view;
|
package android.view;
|
||||||
|
|
||||||
|
import android.content.ComponentName;
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.view.MenuItem;
|
||||||
|
|
||||||
public interface Menu {
|
public interface Menu {
|
||||||
|
|
||||||
public MenuItem add(int groupId, int itemId, int order, CharSequence title);
|
public MenuItem add(int groupId, int itemId, int order, CharSequence title);
|
||||||
@@ -33,4 +37,6 @@ public interface Menu {
|
|||||||
public boolean hasVisibleItems();
|
public boolean hasVisibleItems();
|
||||||
|
|
||||||
public SubMenu addSubMenu(int groupId, int itemId, int order, int titleRes);
|
public SubMenu addSubMenu(int groupId, int itemId, int order, int titleRes);
|
||||||
|
|
||||||
|
public int addIntentOptions (int groupId, int itemId, int order, ComponentName caller, Intent[] specifics, Intent intent, int flags, MenuItem[] outSpecificItems);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,4 +58,5 @@ public interface MenuItem {
|
|||||||
|
|
||||||
public MenuItem setAlphabeticShortcut(char alphaChar);
|
public MenuItem setAlphabeticShortcut(char alphaChar);
|
||||||
|
|
||||||
|
public MenuItem setShortcut(char numeric, char alpha);
|
||||||
}
|
}
|
||||||
@@ -27,6 +27,7 @@ import android.util.Slog;
|
|||||||
import android.util.SparseArray;
|
import android.util.SparseArray;
|
||||||
import android.view.animation.Animation;
|
import android.view.animation.Animation;
|
||||||
|
|
||||||
|
import java.lang.CharSequence;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -1861,4 +1862,10 @@ public class View implements Drawable.Callback {
|
|||||||
else
|
else
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setTooltipText(CharSequence tooltip) {}
|
||||||
|
|
||||||
|
public int getImportantForAutofill() {return 0;}
|
||||||
|
|
||||||
|
public void setImportantForAutofill(int flag) {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,4 +54,12 @@ public class ViewConfiguration {
|
|||||||
public int getScaledWindowTouchSlop() {
|
public int getScaledWindowTouchSlop() {
|
||||||
return 8;
|
return 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public float getScaledHorizontalScrollFactor() {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getScaledVerticalScrollFactor() {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,4 +27,5 @@ public abstract class AbsSeekBar extends ProgressBar {
|
|||||||
|
|
||||||
public void setKeyProgressIncrement(int keyProgressIncrement) {}
|
public void setKeyProgressIncrement(int keyProgressIncrement) {}
|
||||||
|
|
||||||
|
public int getKeyProgressIncrement() {return 0;}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,9 @@
|
|||||||
|
|
||||||
package android.widget;
|
package android.widget;
|
||||||
|
|
||||||
|
import android.content.ComponentName;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
import android.content.Intent;
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
@@ -310,6 +312,11 @@ public class PopupMenu {
|
|||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
throw new UnsupportedOperationException("Unimplemented method 'addSubMenu'");
|
throw new UnsupportedOperationException("Unimplemented method 'addSubMenu'");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int addIntentOptions (int groupId, int itemId, int order, ComponentName caller, Intent[] specifics, Intent intent, int flags, MenuItem[] outSpecificItems) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class SubMenuImpl extends MenuImpl implements SubMenu {
|
private class SubMenuImpl extends MenuImpl implements SubMenu {
|
||||||
@@ -505,6 +512,9 @@ public class PopupMenu {
|
|||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
throw new UnsupportedOperationException("Unimplemented method 'setAlphabeticShortcut'");
|
throw new UnsupportedOperationException("Unimplemented method 'setAlphabeticShortcut'");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MenuItem setShortcut(char numeric, char alpha) { return this; }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user