Back to project page AppSearchWidget.
The source code is released under:
Apache License
If you think the Android project AppSearchWidget listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.testwidget; /*from w w w . j av a 2 s . c om*/ import android.content.Context; import android.content.Intent; import android.util.Log; public class LetterIntent extends Intent { private boolean mDebug = false; private static final String TAG = "LetterIntent"; public LetterIntent(Context packageContext, Class<?> cls) { super(packageContext, cls); if (mDebug) { Log.i(TAG, "Creating letterintent"); } } @Override public boolean filterEquals(Intent other) { if (mDebug) { Log.i(TAG, "Comparing probable LetterIntents"); } if (other instanceof LetterIntent) { LetterIntent otherLetterIntent = (LetterIntent)other; String letterIntentExtra = this.getStringExtra(KeyInputHandler.KEY_CHARACTER_EXTRA); String otherLetterIntentExtra = otherLetterIntent.getStringExtra(KeyInputHandler.KEY_CHARACTER_EXTRA); if (letterIntentExtra != null && otherLetterIntentExtra != null) { return letterIntentExtra.equals(otherLetterIntentExtra); } } return super.filterEquals(other); } }