Skip to content

Commit

Permalink
共通関数から NoSuchMethodError を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
s1204IT authored Mar 15, 2024
1 parent 230814c commit ba7956c
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions app/src/main/java/me/s1204/benesse/touch/test/Tester.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public class Tester extends Activity {
private static final String CTX = "TAB-A05-BD";
private static final String CTZ = "TAB-A05-BA1";


private void backHome() {
finish();
startActivity(new Intent(Intent.ACTION_MAIN)
.addCategory(Intent.CATEGORY_DEFAULT)
.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION).setPackage(getPackageName()));
.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION)
.setPackage(getPackageName()));
}

private void makeText(String msg) {
Expand Down Expand Up @@ -100,8 +100,6 @@ public void onCreate(Bundle savedInstanceState) {
cannotExec(e);
} catch (NoClassDefFoundError e) {
noClassFound(e);
} catch (NoSuchMethodError e) {
noSuchFunc(e);
}
});
// メニューに戻る
Expand Down Expand Up @@ -136,8 +134,6 @@ public void onCreate(Bundle savedInstanceState) {
makeText("getDchaState:" + BenesseExtension.getDchaState());
} catch (NoClassDefFoundError e) {
noClassFound(e);
} catch (NoSuchMethodError e) {
noSuchFunc(e);
}
});

Expand Down Expand Up @@ -201,8 +197,6 @@ public void onCreate(Bundle savedInstanceState) {
cannotExec(e);
} catch (NoClassDefFoundError e) {
noClassFound(e);
} catch (NoSuchMethodError e) {
noSuchFunc(e);
}
});
// メニューに戻る
Expand Down Expand Up @@ -268,8 +262,6 @@ public void onCreate(Bundle savedInstanceState) {
cannotExec(e);
} catch (NoClassDefFoundError e) {
noClassFound(e);
} catch (NoSuchMethodError e) {
noSuchFunc(e);
}
});
// setDchaState(1)
Expand All @@ -280,8 +272,6 @@ public void onCreate(Bundle savedInstanceState) {
cannotExec(e);
} catch (NoClassDefFoundError e) {
noClassFound(e);
} catch (NoSuchMethodError e) {
noSuchFunc(e);
}
});
// setDchaState(2)
Expand All @@ -292,8 +282,6 @@ public void onCreate(Bundle savedInstanceState) {
cannotExec(e);
} catch (NoClassDefFoundError e) {
noClassFound(e);
} catch (NoSuchMethodError e) {
noSuchFunc(e);
}
});
// setDchaState(3)
Expand All @@ -304,8 +292,6 @@ public void onCreate(Bundle savedInstanceState) {
cannotExec(e);
} catch (NoClassDefFoundError e) {
noClassFound(e);
} catch (NoSuchMethodError e) {
noSuchFunc(e);
}
});
// メニューに戻る
Expand Down

0 comments on commit ba7956c

Please sign in to comment.