Commit 0824d31a authored by Jean Chalard's avatar Jean Chalard

Add the cancel button handler

Step 3

Bug: 5306641
Change-Id: Ida4ccf181942714799576fde0ac55596ce043434
parent e17eefab
......@@ -12,3 +12,7 @@
-keep class com.android.settings.accounts.*
-keep class com.android.settings.fuelgauge.*
# Keep click responders
-keepclassmembers class com.android.settings.inputmethod.UserDictionaryAddWordActivity {
*** onClick*(...);
}
......@@ -67,7 +67,8 @@
style="?android:attr/buttonBarButtonStyle"
android:textSize="14sp"
android:text="@string/cancel"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:onClick="onClickCancel" />
<Button android:layout_width="0dip"
android:layout_gravity="center_horizontal"
android:layout_weight="1"
......
......@@ -21,6 +21,7 @@ import com.android.settings.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
public class UserDictionaryAddWordActivity extends Activity {
......@@ -38,4 +39,8 @@ public class UserDictionaryAddWordActivity extends Activity {
mEditText.setText(word);
mEditText.setSelection(word.length());
}
public void onClickCancel(final View v) {
finish();
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment