mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 14:21:16 +00:00
Moved donate link to app settings.
This commit is contained in:
parent
ac7d410db4
commit
17ff8e7f83
28 changed files with 36 additions and 44 deletions
|
@ -1,7 +1,6 @@
|
||||||
package com.nutomic.syncthingandroid.fragments;
|
package com.nutomic.syncthingandroid.fragments;
|
||||||
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.net.Uri;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.v4.app.Fragment;
|
import android.support.v4.app.Fragment;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
|
@ -21,8 +20,6 @@ import java.util.Map;
|
||||||
import java.util.Timer;
|
import java.util.Timer;
|
||||||
import java.util.TimerTask;
|
import java.util.TimerTask;
|
||||||
|
|
||||||
import static android.content.Intent.ACTION_VIEW;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays information about the local device.
|
* Displays information about the local device.
|
||||||
*/
|
*/
|
||||||
|
@ -94,8 +91,6 @@ public class DrawerFragment extends Fragment implements RestApi.OnReceiveSystemI
|
||||||
.setOnClickListener(this);
|
.setOnClickListener(this);
|
||||||
view.findViewById(R.id.drawerActionShareId)
|
view.findViewById(R.id.drawerActionShareId)
|
||||||
.setOnClickListener(this);
|
.setOnClickListener(this);
|
||||||
view.findViewById(R.id.drawerActionDonate)
|
|
||||||
.setOnClickListener(this);
|
|
||||||
view.findViewById(R.id.drawerActionRestart)
|
view.findViewById(R.id.drawerActionRestart)
|
||||||
.setOnClickListener(this);
|
.setOnClickListener(this);
|
||||||
view.findViewById(R.id.drawerActionSettings)
|
view.findViewById(R.id.drawerActionSettings)
|
||||||
|
@ -195,11 +190,6 @@ public class DrawerFragment extends Fragment implements RestApi.OnReceiveSystemI
|
||||||
startActivity(Intent.createChooser(i, "Share device ID with"));
|
startActivity(Intent.createChooser(i, "Share device ID with"));
|
||||||
mActivity.closeDrawer();
|
mActivity.closeDrawer();
|
||||||
break;
|
break;
|
||||||
case R.id.drawerActionDonate:
|
|
||||||
startActivity(new Intent(ACTION_VIEW, Uri.parse(
|
|
||||||
getString(R.string.donate_url))));
|
|
||||||
mActivity.closeDrawer();
|
|
||||||
break;
|
|
||||||
case R.id.drawerActionSettings:
|
case R.id.drawerActionSettings:
|
||||||
startActivity(new Intent(mActivity, SettingsActivity.class)
|
startActivity(new Intent(mActivity, SettingsActivity.class)
|
||||||
.setAction(SettingsActivity.ACTION_APP_SETTINGS));
|
.setAction(SettingsActivity.ACTION_APP_SETTINGS));
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 396 B |
Binary file not shown.
Before Width: | Height: | Size: 426 B |
Binary file not shown.
Before Width: | Height: | Size: 633 B |
Binary file not shown.
Before Width: | Height: | Size: 812 B |
|
@ -228,15 +228,6 @@
|
||||||
android:drawableStart="@drawable/ic_share_black_24dp"
|
android:drawableStart="@drawable/ic_share_black_24dp"
|
||||||
android:text="@string/share_device_id" />
|
android:text="@string/share_device_id" />
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/drawerActionDonate"
|
|
||||||
style="@style/Widget.Syncthing.TextView.Label"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="48dp"
|
|
||||||
android:drawableLeft="@drawable/ic_attach_money_black_24dp"
|
|
||||||
android:drawableStart="@drawable/ic_attach_money_black_24dp"
|
|
||||||
android:text="@string/donate" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/drawerActionRestart"
|
android:id="@+id/drawerActionRestart"
|
||||||
style="@style/Widget.Syncthing.TextView.Label"
|
style="@style/Widget.Syncthing.TextView.Label"
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Сървър за откриване на устройства</string>
|
<string name="announce_server">Сървър за откриване на устройства</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Дарете</string>
|
<string name="donate_title">Дарете</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
<string name="folder_id">Идентификатор на папката</string>
|
<string name="folder_id">Идентификатор на папката</string>
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Globální oznamování</string>
|
<string name="announce_server">Globální oznamování</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Přispět</string>
|
<string name="donate_title">Přispět</string>
|
||||||
<string name="restart">Restart</string>
|
<string name="restart">Restart</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Indexserver</string>
|
<string name="announce_server">Indexserver</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Spenden</string>
|
<string name="donate_title">Spenden</string>
|
||||||
<string name="restart">Neustart</string>
|
<string name="restart">Neustart</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Servidor de Anuncio</string>
|
<string name="announce_server">Servidor de Anuncio</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Donar</string>
|
<string name="donate_title">Donar</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
<string name="folder_id">ID de carpeta</string>
|
<string name="folder_id">ID de carpeta</string>
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Serveur d\'annonce</string>
|
<string name="announce_server">Serveur d\'annonce</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Faire un don</string>
|
<string name="donate_title">Faire un don</string>
|
||||||
<string name="restart">Redémarrer</string>
|
<string name="restart">Redémarrer</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
<string name="ram_usage">Memória használat</string>
|
<string name="ram_usage">Memória használat</string>
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Támogatás</string>
|
<string name="donate_title">Támogatás</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
<string name="folder_id">Mappa azonosító</string>
|
<string name="folder_id">Mappa azonosító</string>
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Server Penyiaran</string>
|
<string name="announce_server">Server Penyiaran</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Donasi</string>
|
<string name="donate_title">Donasi</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
<string name="folder_id">ID Folder</string>
|
<string name="folder_id">ID Folder</string>
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Server Presenza Globale</string>
|
<string name="announce_server">Server Presenza Globale</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Donazione</string>
|
<string name="donate_title">Donazione</string>
|
||||||
<string name="restart">Riavvia ora</string>
|
<string name="restart">Riavvia ora</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">アナウンスサーバー</string>
|
<string name="announce_server">アナウンスサーバー</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">寄付</string>
|
<string name="donate_title">寄付</string>
|
||||||
<string name="restart">再起動</string>
|
<string name="restart">再起動</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">익명 서버</string>
|
<string name="announce_server">익명 서버</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">기부하기</string>
|
<string name="donate_title">기부하기</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
<string name="folder_id">폴더 ID</string>
|
<string name="folder_id">폴더 ID</string>
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Søketjener</string>
|
<string name="announce_server">Søketjener</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Donér</string>
|
<string name="donate_title">Donér</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
<string name="folder_id">Mappe-ID</string>
|
<string name="folder_id">Mappe-ID</string>
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Mededelingsserver</string>
|
<string name="announce_server">Mededelingsserver</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Doneren</string>
|
<string name="donate_title">Doneren</string>
|
||||||
<string name="restart">Herstarten</string>
|
<string name="restart">Herstarten</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Serwer ogłoszeniowy</string>
|
<string name="announce_server">Serwer ogłoszeniowy</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Wspomóż</string>
|
<string name="donate_title">Wspomóż</string>
|
||||||
<string name="restart">Uruchom ponownie</string>
|
<string name="restart">Uruchom ponownie</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Servidor de busca global</string>
|
<string name="announce_server">Servidor de busca global</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Doações</string>
|
<string name="donate_title">Doações</string>
|
||||||
<string name="restart">Reiniciar</string>
|
<string name="restart">Reiniciar</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Servidor de busca global</string>
|
<string name="announce_server">Servidor de busca global</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Doar</string>
|
<string name="donate_title">Doar</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
<string name="folder_id">ID da pasta</string>
|
<string name="folder_id">ID da pasta</string>
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Сервера анонсов</string>
|
<string name="announce_server">Сервера анонсов</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Пожертвовать</string>
|
<string name="donate_title">Пожертвовать</string>
|
||||||
<string name="restart">Перезагрузить</string>
|
<string name="restart">Перезагрузить</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Ohlasovací server</string>
|
<string name="announce_server">Ohlasovací server</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Prispieť</string>
|
<string name="donate_title">Prispieť</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
<string name="folder_id">ID adresára</string>
|
<string name="folder_id">ID adresára</string>
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Bildirim Sunucusu</string>
|
<string name="announce_server">Bildirim Sunucusu</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Bağış yap</string>
|
<string name="donate_title">Bağış yap</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
<string name="folder_id">Klasör ID</string>
|
<string name="folder_id">Klasör ID</string>
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">Máy chủ thông báo</string>
|
<string name="announce_server">Máy chủ thông báo</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">Quyên góp</string>
|
<string name="donate_title">Quyên góp</string>
|
||||||
<string name="restart">Khởi chạy lại</string>
|
<string name="restart">Khởi chạy lại</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<!--Title for announce server status-->
|
<!--Title for announce server status-->
|
||||||
<string name="announce_server">宣告服务器</string>
|
<string name="announce_server">宣告服务器</string>
|
||||||
<!--Menu item to donate-->
|
<!--Menu item to donate-->
|
||||||
<string name="donate">捐赠</string>
|
<string name="donate_title">捐赠</string>
|
||||||
<string name="restart">重启</string>
|
<string name="restart">重启</string>
|
||||||
<!--FolderSettingsFragment-->
|
<!--FolderSettingsFragment-->
|
||||||
<!--Setting title-->
|
<!--Setting title-->
|
||||||
|
|
|
@ -92,11 +92,6 @@
|
||||||
<!-- Title for announce server status -->
|
<!-- Title for announce server status -->
|
||||||
<string name="announce_server">Announce Server</string>
|
<string name="announce_server">Announce Server</string>
|
||||||
|
|
||||||
<!-- Menu item to donate -->
|
|
||||||
<string name="donate">Donate</string>
|
|
||||||
|
|
||||||
<string name="donate_url" translatable="false">https://syncthing.net/#donate</string>
|
|
||||||
|
|
||||||
<string name="restart">Restart</string>
|
<string name="restart">Restart</string>
|
||||||
|
|
||||||
<!-- FolderSettingsFragment -->
|
<!-- FolderSettingsFragment -->
|
||||||
|
@ -351,6 +346,14 @@ Please report any problems you encounter via Github.</string>
|
||||||
<!-- URL of the issue tracker -->
|
<!-- URL of the issue tracker -->
|
||||||
<string name="issue_tracker_url" translatable="false">https://github.com/Nutomic/syncthing-android/issues</string>
|
<string name="issue_tracker_url" translatable="false">https://github.com/Nutomic/syncthing-android/issues</string>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Menu item to donate -->
|
||||||
|
<string name="donate_title">Donate</string>
|
||||||
|
|
||||||
|
<string name="donate_summary">Help us pay for domains and hosting fees</string>
|
||||||
|
|
||||||
|
<string name="donate_url" translatable="false">https://syncthing.net/#donate</string>
|
||||||
|
|
||||||
<!-- Title of the preference showing upstream version name -->
|
<!-- Title of the preference showing upstream version name -->
|
||||||
<string name="syncthing_version_title">Syncthing Version</string>
|
<string name="syncthing_version_title">Syncthing Version</string>
|
||||||
|
|
||||||
|
|
|
@ -179,6 +179,14 @@
|
||||||
android:data="@string/issue_tracker_url" />
|
android:data="@string/issue_tracker_url" />
|
||||||
</Preference>
|
</Preference>
|
||||||
|
|
||||||
|
<Preference
|
||||||
|
android:title="@string/donate_title"
|
||||||
|
android:summary="@string/donate_summary">
|
||||||
|
<intent
|
||||||
|
android:action="android.intent.action.VIEW"
|
||||||
|
android:data="@string/donate_url" />
|
||||||
|
</Preference>
|
||||||
|
|
||||||
<Preference
|
<Preference
|
||||||
android:key="syncthing_version"
|
android:key="syncthing_version"
|
||||||
android:title="@string/syncthing_version_title"
|
android:title="@string/syncthing_version_title"
|
||||||
|
|
Loading…
Reference in a new issue