* java/org/gnu/emacs/EmacsOpenActivity.java (EmacsOpenActivity)
(onCancel): New function.
(displayFailureDialog): Handle dialog cancellation.
* src/sfntfont.c (sfnt_parse_languages): Look for SLNG tag if
DLNG is not present.
import java.io.UnsupportedEncodingException;
public final class EmacsOpenActivity extends Activity
- implements DialogInterface.OnClickListener
+ implements DialogInterface.OnClickListener,
+ DialogInterface.OnCancelListener
{
private static final String TAG = "EmacsOpenActivity";
finish ();
}
+ @Override
+ public void
+ onCancel (DialogInterface dialog)
+ {
+ finish ();
+ }
+
public String
readEmacsClientLog ()
{
dialog.setMessage (text);
dialog.setButton (DialogInterface.BUTTON_POSITIVE, "OK", this);
+ dialog.setOnCancelListener (this);
dialog.show ();
}
&map);
if (!data)
- return;
+ {
+ /* Fall back to the supported languages metadata. */
+ data = sfnt_find_metadata (meta, SFNT_META_DATA_TAG_SLNG,
+ &map);
+
+ if (!data)
+ return;
+ }
USE_SAFE_ALLOCA;