add filepicker license

This commit is contained in:
tibbi
2016-11-16 00:05:50 +01:00
parent 8f120d1a86
commit 8ed58d6899
10 changed files with 26 additions and 0 deletions

View File

@@ -4,12 +4,14 @@ import android.content.Intent
import android.net.Uri import android.net.Uri
import android.os.Bundle import android.os.Bundle
import com.simplemobiletools.camera.R import com.simplemobiletools.camera.R
import kotlinx.android.synthetic.main.activity_license.*
class LicenseActivity : SimpleActivity() { class LicenseActivity : SimpleActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
setContentView(R.layout.activity_license) setContentView(R.layout.activity_license)
license_filepicker_title.setOnClickListener { openUrl(R.string.filepicker_url) }
} }
private fun openUrl(id: Int) { private fun openUrl(id: Int) {

View File

@@ -17,5 +17,19 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/notice"/> android:text="@string/notice"/>
<TextView
android:id="@+id/license_filepicker_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/activity_margin"
android:text="@string/filepicker_title"
android:textColor="@color/colorPrimary"/>
<TextView
android:id="@+id/license_filepicker_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/filepicker_text"/>
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>

View File

@@ -40,4 +40,5 @@
<!-- License --> <!-- License -->
<string name="notice">Diese App nutzt die folgenden Drittanbieterbibliotheken, die mein Leben einfacher machen. Danke.</string> <string name="notice">Diese App nutzt die folgenden Drittanbieterbibliotheken, die mein Leben einfacher machen. Danke.</string>
<string name="third_party_licences">Drittanbieterlizenzen</string> <string name="third_party_licences">Drittanbieterlizenzen</string>
<string name="filepicker_title"><u>Simple File Picker (filepicker dialog)</u></string>
</resources> </resources>

View File

@@ -40,4 +40,5 @@
<!-- License --> <!-- License -->
<string name="notice">Questa app usa le seguenti librerie di terze parti per semplificarmi la vita. Grazie.</string> <string name="notice">Questa app usa le seguenti librerie di terze parti per semplificarmi la vita. Grazie.</string>
<string name="third_party_licences">Licenze di terze parti</string> <string name="third_party_licences">Licenze di terze parti</string>
<string name="filepicker_title"><u>Simple File Picker (filepicker dialog)</u></string>
</resources> </resources>

View File

@@ -40,4 +40,5 @@
<!-- License --> <!-- License -->
<string name="notice">このアプリは、私の人生を容易にするために、次のサードパーティのライブラリーを使用しています。 ありがとうございます。</string> <string name="notice">このアプリは、私の人生を容易にするために、次のサードパーティのライブラリーを使用しています。 ありがとうございます。</string>
<string name="third_party_licences">サードパーティー ライセンス</string> <string name="third_party_licences">サードパーティー ライセンス</string>
<string name="filepicker_title"><u>Simple File Picker (filepicker dialog)</u></string>
</resources> </resources>

View File

@@ -40,4 +40,5 @@
<!-- License --> <!-- License -->
<string name="notice">Ši programėlė naudoja sekančias trečiųjų šyalių bibliotekas, kad palengvinti man gyvenimą. Ačiū.</string> <string name="notice">Ši programėlė naudoja sekančias trečiųjų šyalių bibliotekas, kad palengvinti man gyvenimą. Ačiū.</string>
<string name="third_party_licences">Trečiųjų šalių licenzijos</string> <string name="third_party_licences">Trečiųjų šalių licenzijos</string>
<string name="filepicker_title"><u>Simple File Picker (filepicker dialog)</u></string>
</resources> </resources>

View File

@@ -40,4 +40,5 @@
<!-- License --> <!-- License -->
<string name="notice">Esta aplicação usa as seguintes bibliotecas de terceiros para facilitar a minha vida. Obrigado.</string> <string name="notice">Esta aplicação usa as seguintes bibliotecas de terceiros para facilitar a minha vida. Obrigado.</string>
<string name="third_party_licences">Licenças de terceiros</string> <string name="third_party_licences">Licenças de terceiros</string>
<string name="filepicker_title"><u>Simple File Picker (filepicker dialog)</u></string>
</resources> </resources>

View File

@@ -40,4 +40,5 @@
<!-- License --> <!-- License -->
<string name="notice">Это приложение использует следующие сторонние библиотеки, что бы сделать мою жизнь проще. Спасибо.</string> <string name="notice">Это приложение использует следующие сторонние библиотеки, что бы сделать мою жизнь проще. Спасибо.</string>
<string name="third_party_licences">Сторонние лицензии</string> <string name="third_party_licences">Сторонние лицензии</string>
<string name="filepicker_title"><u>Simple File Picker (filepicker dialog)</u></string>
</resources> </resources>

View File

@@ -40,4 +40,5 @@
<!-- License --> <!-- License -->
<string name="notice">Denna app använder följande tredjepartsbibliotek för att göra mitt liv enklare. Tack.</string> <string name="notice">Denna app använder följande tredjepartsbibliotek för att göra mitt liv enklare. Tack.</string>
<string name="third_party_licences">Tredjepartslicenser</string> <string name="third_party_licences">Tredjepartslicenser</string>
<string name="filepicker_title"><u>Simple File Picker (filepicker dialog)</u></string>
</resources> </resources>

View File

@@ -41,4 +41,7 @@
<!-- License --> <!-- License -->
<string name="notice">This app uses the following third party libraries to make my life easier. Thank you.</string> <string name="notice">This app uses the following third party libraries to make my life easier. Thank you.</string>
<string name="third_party_licences">Third party licences</string> <string name="third_party_licences">Third party licences</string>
<string name="filepicker_title"><u>Simple File Picker (filepicker dialog)</u></string>
<string name="filepicker_text" translatable="false">Copyright 2016 SimpleMobileTools\n\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions and limitations under the License.</string>
<string name="filepicker_url" translatable="false">https://github.com/SimpleMobileTools/Simple-File-Picker</string>
</resources> </resources>