Skip to content

Commit 8ed58d6

Browse files
committed
add filepicker license
1 parent 8f120d1 commit 8ed58d6

10 files changed

Lines changed: 26 additions & 0 deletions

File tree

app/src/main/kotlin/com/simplemobiletools/camera/activities/LicenseActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ import android.content.Intent
44
import android.net.Uri
55
import android.os.Bundle
66
import com.simplemobiletools.camera.R
7+
import kotlinx.android.synthetic.main.activity_license.*
78

89
class LicenseActivity : SimpleActivity() {
910

1011
override fun onCreate(savedInstanceState: Bundle?) {
1112
super.onCreate(savedInstanceState)
1213
setContentView(R.layout.activity_license)
14+
license_filepicker_title.setOnClickListener { openUrl(R.string.filepicker_url) }
1315
}
1416

1517
private fun openUrl(id: Int) {

app/src/main/res/layout/activity_license.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,19 @@
1717
android:layout_height="wrap_content"
1818
android:text="@string/notice"/>
1919

20+
<TextView
21+
android:id="@+id/license_filepicker_title"
22+
android:layout_width="match_parent"
23+
android:layout_height="wrap_content"
24+
android:paddingTop="@dimen/activity_margin"
25+
android:text="@string/filepicker_title"
26+
android:textColor="@color/colorPrimary"/>
27+
28+
<TextView
29+
android:id="@+id/license_filepicker_text"
30+
android:layout_width="wrap_content"
31+
android:layout_height="wrap_content"
32+
android:text="@string/filepicker_text"/>
33+
2034
</LinearLayout>
2135
</ScrollView>

app/src/main/res/values-de/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@
4040
<!-- License -->
4141
<string name="notice">Diese App nutzt die folgenden Drittanbieterbibliotheken, die mein Leben einfacher machen. Danke.</string>
4242
<string name="third_party_licences">Drittanbieterlizenzen</string>
43+
<string name="filepicker_title"><u>Simple File Picker (filepicker dialog)</u></string>
4344
</resources>

app/src/main/res/values-it/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@
4040
<!-- License -->
4141
<string name="notice">Questa app usa le seguenti librerie di terze parti per semplificarmi la vita. Grazie.</string>
4242
<string name="third_party_licences">Licenze di terze parti</string>
43+
<string name="filepicker_title"><u>Simple File Picker (filepicker dialog)</u></string>
4344
</resources>

app/src/main/res/values-ja/strings.xml

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

app/src/main/res/values-lt/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@
4040
<!-- License -->
4141
<string name="notice">Ši programėlė naudoja sekančias trečiųjų šyalių bibliotekas, kad palengvinti man gyvenimą. Ačiū.</string>
4242
<string name="third_party_licences">Trečiųjų šalių licenzijos</string>
43+
<string name="filepicker_title"><u>Simple File Picker (filepicker dialog)</u></string>
4344
</resources>

app/src/main/res/values-pt-rPT/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@
4040
<!-- License -->
4141
<string name="notice">Esta aplicação usa as seguintes bibliotecas de terceiros para facilitar a minha vida. Obrigado.</string>
4242
<string name="third_party_licences">Licenças de terceiros</string>
43+
<string name="filepicker_title"><u>Simple File Picker (filepicker dialog)</u></string>
4344
</resources>

app/src/main/res/values-ru/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@
4040
<!-- License -->
4141
<string name="notice">Это приложение использует следующие сторонние библиотеки, что бы сделать мою жизнь проще. Спасибо.</string>
4242
<string name="third_party_licences">Сторонние лицензии</string>
43+
<string name="filepicker_title"><u>Simple File Picker (filepicker dialog)</u></string>
4344
</resources>

app/src/main/res/values-sv/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@
4040
<!-- License -->
4141
<string name="notice">Denna app använder följande tredjepartsbibliotek för att göra mitt liv enklare. Tack.</string>
4242
<string name="third_party_licences">Tredjepartslicenser</string>
43+
<string name="filepicker_title"><u>Simple File Picker (filepicker dialog)</u></string>
4344
</resources>

app/src/main/res/values/strings.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,7 @@
4141
<!-- License -->
4242
<string name="notice">This app uses the following third party libraries to make my life easier. Thank you.</string>
4343
<string name="third_party_licences">Third party licences</string>
44+
<string name="filepicker_title"><u>Simple File Picker (filepicker dialog)</u></string>
45+
<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>
46+
<string name="filepicker_url" translatable="false">https://github.com/SimpleMobileTools/Simple-File-Picker</string>
4447
</resources>

0 commit comments

Comments
 (0)