Added license

This commit is contained in:
PeratX 2017-04-22 15:47:34 +08:00
parent 9f35064b58
commit 53e835f481
4 changed files with 12 additions and 0 deletions

View File

@ -92,6 +92,8 @@ public class AboutActivity extends AppCompatActivity {
mWebView = null;
}
System.gc();
//System.exit(0);
}
@ -118,6 +120,10 @@ public class AboutActivity extends AppCompatActivity {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/iTXTech/Daedalus")));
}
if (id == R.id.action_license) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/iTXTech/Daedalus/blob/master/LICENSE")));
}
/*if (id == R.id.action_visit_cutedns) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.cutedns.cn")));
}*/

View File

@ -10,6 +10,10 @@
android:title="@string/action_visit_github"
android:orderInCategory="100"
app:showAsAction="never"/>
<item android:id="@+id/action_license"
android:title="@string/action_license"
android:orderInCategory="100"
app:showAsAction="never"/>
<!--item android:id="@+id/action_visit_cutedns"
android:title="@string/action_visit_cutedns"
android:orderInCategory="100"

View File

@ -48,4 +48,5 @@
<string name="server_puredns_east_china">Pure DNS 华东</string>
<string name="server_aixyz_south_china">AIXYZ DNS 华南</string>
<string name="server_aixyz_east_china">AIXYZ DNS 华东</string>
<string name="action_license">开源许可证</string>
</resources>

View File

@ -48,4 +48,5 @@
<string name="server_puredns_east_china">Pure DNS East China</string>
<string name="server_aixyz_south_china">AIXYZ DNS South China</string>
<string name="server_aixyz_east_china">AIXYZ DNS East China</string>
<string name="action_license">Open Source License</string>
</resources>