Browse Source

Add license for NetCipher

master
Anthony Restaino 10 years ago
parent
commit
83d2e53a25
  1. 32
      res/layout/license_activity.xml
  2. 2
      res/values/strings.xml
  3. 4
      src/acr/browser/lightning/LicenseActivity.java

32
res/layout/license_activity.xml

@ -103,4 +103,36 @@
android:layout_marginLeft="5dp" android:layout_marginLeft="5dp"
android:layout_marginRight="5dp" android:layout_marginRight="5dp"
android:background="#cdcdcd" /> android:background="#cdcdcd" />
<LinearLayout
android:id="@+id/licenseOrbot"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/listChoiceBackgroundIndicator"
android:orientation="vertical"
android:paddingBottom="10dp"
android:paddingTop="10dp" >
<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:text="@string/library_netcipher"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/isImportAvailable4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:text="@string/license_gnu"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/light" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="#cdcdcd" />
</LinearLayout> </LinearLayout>

2
res/values/strings.xml

@ -180,4 +180,6 @@
<string name="name_normal">Normal</string> <string name="name_normal">Normal</string>
<string name="sync_history">Sync history with Google</string> <string name="sync_history">Sync history with Google</string>
<string name="title_file_chooser">File Chooser</string> <string name="title_file_chooser">File Chooser</string>
<string name="library_netcipher">NetCipher</string>
<string name="license_gnu">GNU Lesser General Public License</string>
</resources> </resources>

4
src/acr/browser/lightning/LicenseActivity.java

@ -26,6 +26,7 @@ public class LicenseActivity extends Activity implements View.OnClickListener {
findViewById(R.id.browserLicense).setOnClickListener(this); findViewById(R.id.browserLicense).setOnClickListener(this);
findViewById(R.id.licenseAOSP).setOnClickListener(this); findViewById(R.id.licenseAOSP).setOnClickListener(this);
findViewById(R.id.licenseHosts).setOnClickListener(this); findViewById(R.id.licenseHosts).setOnClickListener(this);
findViewById(R.id.licenseOrbot).setOnClickListener(this);
} }
@Override @Override
@ -40,6 +41,9 @@ public class LicenseActivity extends Activity implements View.OnClickListener {
case R.id.licenseHosts: case R.id.licenseHosts:
actionView("http://hosts-file.net/"); actionView("http://hosts-file.net/");
break; break;
case R.id.licenseOrbot:
actionView("http://www.gnu.org/licenses/lgpl.html");
break;
} }
} }

Loading…
Cancel
Save