• R/O
  • HTTP
  • SSH
  • HTTPS

A01d: Commit

OPC(Olympus Air)用望遠鏡アプリ。


Commit MetaInfo

Révision670fc8cbb16685f3ec6cbf4c22b50f5f59518901 (tree)
l'heure2018-06-20 00:26:40
AuteurMRSa <mrsa@myad...>
CommiterMRSa

Message de Log

コマンドを投げるところで2度目はエラーになってしまったので対処する。

Change Summary

Modification

--- a/app/src/main/java/net/osdn/gokigen/a01d/camera/sony/cameraproperty/SonyCameraApiListFragment.java
+++ b/app/src/main/java/net/osdn/gokigen/a01d/camera/sony/cameraproperty/SonyCameraApiListFragment.java
@@ -153,7 +153,17 @@ public class SonyCameraApiListFragment extends ListFragment implements SendReque
153153 */
154154 private void update()
155155 {
156- dataItems.clear();
156+ try
157+ {
158+ if (dataItems != null)
159+ {
160+ dataItems.clear();
161+ }
162+ }
163+ catch (Exception e)
164+ {
165+ e.printStackTrace();
166+ }
157167 Thread thread = new Thread(new Runnable()
158168 {
159169 @Override
@@ -371,7 +381,16 @@ public class SonyCameraApiListFragment extends ListFragment implements SendReque
371381 try
372382 {
373383 ConfirmationDialog dialog = ConfirmationDialog.newInstance(getActivity());
374- dialog.show(android.R.drawable.ic_dialog_info, getString(R.string.dialog_title_reply), reply.getString("result"));
384+ String replyString = "";
385+ try
386+ {
387+ replyString = reply.getString("result");
388+ }
389+ catch (Exception ee)
390+ {
391+ replyString = reply.getString("results");
392+ }
393+ dialog.show(android.R.drawable.ic_dialog_info, getString(R.string.dialog_title_reply), replyString);
375394 }
376395 catch (Exception e)
377396 {
Afficher sur ancien navigateur de dépôt.