mirror of
https://github.com/gsantner/dandelion
synced 2024-11-22 04:12:08 +01:00
v1.1 see changelog
This commit is contained in:
parent
05bc47c32c
commit
ec50f38eb2
7 changed files with 289 additions and 245 deletions
|
@ -1,7 +1,10 @@
|
||||||
|
### v1.0.1
|
||||||
|
- new about app and help dialogs
|
||||||
|
- better snackbar integration
|
||||||
|
|
||||||
### v1.0.1
|
### v1.0.1
|
||||||
- click toolbar to load strem
|
- click toolbar to load strem
|
||||||
|
|
||||||
|
|
||||||
### v1.0
|
### v1.0
|
||||||
|
|
||||||
First release:
|
First release:
|
||||||
|
|
|
@ -9,8 +9,8 @@ android {
|
||||||
applicationId "de.baumann.diaspora"
|
applicationId "de.baumann.diaspora"
|
||||||
minSdkVersion 15
|
minSdkVersion 15
|
||||||
targetSdkVersion 23
|
targetSdkVersion 23
|
||||||
versionCode 2
|
versionCode 4
|
||||||
versionName "1.0.1"
|
versionName "1.1"
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
|
|
|
@ -48,6 +48,10 @@ import android.support.v4.widget.SwipeRefreshLayout;
|
||||||
import android.support.v7.app.ActionBarDrawerToggle;
|
import android.support.v7.app.ActionBarDrawerToggle;
|
||||||
import android.support.v7.app.AppCompatActivity;
|
import android.support.v7.app.AppCompatActivity;
|
||||||
import android.support.v7.widget.Toolbar;
|
import android.support.v7.widget.Toolbar;
|
||||||
|
import android.text.Html;
|
||||||
|
import android.text.SpannableString;
|
||||||
|
import android.text.method.LinkMovementMethod;
|
||||||
|
import android.text.util.Linkify;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
|
@ -116,7 +120,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
webView.loadUrl("https://" + podDomain + "/stream");
|
webView.loadUrl("https://" + podDomain + "/stream");
|
||||||
setTitle(R.string.jb_stream);
|
setTitle(R.string.jb_stream);
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -186,7 +190,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
if (Helpers.isOnline(MainActivity.this)) {
|
if (Helpers.isOnline(MainActivity.this)) {
|
||||||
webView.reload();
|
webView.reload();
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
swipeView.setRefreshing(false);
|
swipeView.setRefreshing(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -278,7 +282,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
webView.loadData("", "text/html", null);
|
webView.loadData("", "text/html", null);
|
||||||
webView.loadUrl("https://"+podDomain);
|
webView.loadUrl("https://"+podDomain);
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -294,7 +298,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
webView.loadUrl("https://" + podDomain + "/status_messages/new");
|
webView.loadUrl("https://" + podDomain + "/status_messages/new");
|
||||||
setTitle(R.string.fab1_title);
|
setTitle(R.string.fab1_title);
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -336,7 +340,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
alert.show();
|
alert.show();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -482,7 +486,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
setTitle(R.string.jb_notifications);
|
setTitle(R.string.jb_notifications);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -493,7 +497,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
setTitle(R.string.jb_conversations);
|
setTitle(R.string.jb_conversations);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -511,7 +515,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
}
|
}
|
||||||
|
|
||||||
if (id == R.id.help_license) {
|
if (id == R.id.help_license) {
|
||||||
final CharSequence[] options = { getString(R.string.help_license), getString(R.string.help_help), getString(R.string.help_donate) };
|
final CharSequence[] options = { getString(R.string.help_license), getString(R.string.help_about), getString(R.string.help_help), getString(R.string.help_donate) };
|
||||||
new AlertDialog.Builder(MainActivity.this)
|
new AlertDialog.Builder(MainActivity.this)
|
||||||
.setItems(options, new DialogInterface.OnClickListener() {
|
.setItems(options, new DialogInterface.OnClickListener() {
|
||||||
|
|
||||||
|
@ -522,30 +526,48 @@ public class MainActivity extends AppCompatActivity
|
||||||
if (options[item].equals(getString(R.string.help_license)))
|
if (options[item].equals(getString(R.string.help_license)))
|
||||||
|
|
||||||
{
|
{
|
||||||
new AlertDialog.Builder(MainActivity.this)
|
final SpannableString s = new SpannableString(Html.fromHtml(getString(R.string.license_text)));
|
||||||
.setMessage(getString(R.string.about_text))
|
Linkify.addLinks(s, Linkify.WEB_URLS);
|
||||||
.setPositiveButton(getString(R.string.about_yes),
|
|
||||||
new DialogInterface.OnClickListener() {
|
final AlertDialog d = new AlertDialog.Builder(MainActivity.this)
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
.setTitle(R.string.license_title)
|
||||||
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/scoute-dich/Diaspora-Native-WebApp"));
|
.setMessage( s )
|
||||||
startActivity(i);
|
.setPositiveButton(getString(R.string.yes),
|
||||||
dialog.cancel();
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.setNegativeButton(getString(R.string.about_no),
|
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
dialog.cancel();
|
dialog.cancel();
|
||||||
}
|
}
|
||||||
}).show();
|
}).show();
|
||||||
|
d.show();
|
||||||
|
((TextView)d.findViewById(android.R.id.message)).setMovementMethod(LinkMovementMethod.getInstance());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (options[item].equals(getString(R.string.help_about)))
|
||||||
|
|
||||||
|
{
|
||||||
|
final SpannableString s = new SpannableString(Html.fromHtml(getString(R.string.about_text)));
|
||||||
|
Linkify.addLinks(s, Linkify.WEB_URLS);
|
||||||
|
|
||||||
|
final AlertDialog d = new AlertDialog.Builder(MainActivity.this)
|
||||||
|
.setTitle(R.string.help_about)
|
||||||
|
.setMessage(s)
|
||||||
|
.setPositiveButton(getString(R.string.yes),
|
||||||
|
new DialogInterface.OnClickListener() {
|
||||||
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
|
dialog.cancel();
|
||||||
|
}
|
||||||
|
}).show();
|
||||||
|
d.show();
|
||||||
|
((TextView)d.findViewById(android.R.id.message)).setMovementMethod(LinkMovementMethod.getInstance());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options[item].equals(getString(R.string.help_help)))
|
if (options[item].equals(getString(R.string.help_help)))
|
||||||
|
|
||||||
{
|
{
|
||||||
new AlertDialog.Builder(MainActivity.this)
|
new AlertDialog.Builder(MainActivity.this)
|
||||||
.setMessage(getString(R.string.markdown_text))
|
.setTitle(R.string.help_help)
|
||||||
.setNegativeButton(getString(R.string.about_no),
|
.setMessage(Html.fromHtml(getString(R.string.markdown_text)))
|
||||||
|
.setPositiveButton(getString(R.string.yes),
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
dialog.cancel();
|
dialog.cancel();
|
||||||
|
@ -558,19 +580,19 @@ public class MainActivity extends AppCompatActivity
|
||||||
{
|
{
|
||||||
new AlertDialog.Builder(MainActivity.this)
|
new AlertDialog.Builder(MainActivity.this)
|
||||||
.setMessage(getString(R.string.donate_text))
|
.setMessage(getString(R.string.donate_text))
|
||||||
.setPositiveButton(getString(R.string.donate_1),
|
.setPositiveButton(getString(R.string.yes),
|
||||||
|
new DialogInterface.OnClickListener() {
|
||||||
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
|
dialog.cancel();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.setNegativeButton(getString(R.string.donate_1),
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://martinv.tip.me/"));
|
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://martinv.tip.me/"));
|
||||||
startActivity(i);
|
startActivity(i);
|
||||||
dialog.cancel();
|
dialog.cancel();
|
||||||
}
|
}
|
||||||
})
|
|
||||||
.setNegativeButton(getString(R.string.about_no),
|
|
||||||
new DialogInterface.OnClickListener() {
|
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
|
||||||
dialog.cancel();
|
|
||||||
}
|
|
||||||
}).show();
|
}).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -581,6 +603,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
|
|
||||||
if (id == R.id.view) {
|
if (id == R.id.view) {
|
||||||
final CharSequence[] options = { getString(R.string.settings_font), getString(R.string.settings_view),getString(R.string.settings_image) };
|
final CharSequence[] options = { getString(R.string.settings_font), getString(R.string.settings_view),getString(R.string.settings_image) };
|
||||||
|
if (Helpers.isOnline(MainActivity.this)) {
|
||||||
new AlertDialog.Builder(MainActivity.this)
|
new AlertDialog.Builder(MainActivity.this)
|
||||||
.setItems(options, new DialogInterface.OnClickListener() {
|
.setItems(options, new DialogInterface.OnClickListener() {
|
||||||
|
|
||||||
|
@ -589,40 +612,21 @@ public class MainActivity extends AppCompatActivity
|
||||||
public void onClick(DialogInterface dialog, int item) {
|
public void onClick(DialogInterface dialog, int item) {
|
||||||
|
|
||||||
if (options[item].equals(getString(R.string.settings_font)))
|
if (options[item].equals(getString(R.string.settings_font)))
|
||||||
|
|
||||||
{
|
|
||||||
if (Helpers.isOnline(MainActivity.this)) {
|
|
||||||
alertFormElements();
|
alertFormElements();
|
||||||
} else {
|
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (options[item].equals(getString(R.string.settings_view)))
|
if (options[item].equals(getString(R.string.settings_view)))
|
||||||
|
|
||||||
{
|
|
||||||
if (Helpers.isOnline(MainActivity.this)) {
|
|
||||||
webView.loadUrl("https://" + podDomain + "/mobile/toggle");
|
webView.loadUrl("https://" + podDomain + "/mobile/toggle");
|
||||||
} else { // No Internet connection
|
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (options[item].equals(getString(R.string.settings_image)))
|
if (options[item].equals(getString(R.string.settings_image)))
|
||||||
|
|
||||||
{
|
|
||||||
if (Helpers.isOnline(MainActivity.this)) {
|
|
||||||
wSettings.setLoadsImagesAutomatically(!pm.getLoadImages());
|
wSettings.setLoadsImagesAutomatically(!pm.getLoadImages());
|
||||||
pm.setLoadImages(!pm.getLoadImages());
|
pm.setLoadImages(!pm.getLoadImages());
|
||||||
webView.loadUrl(webView.getUrl());
|
webView.loadUrl(webView.getUrl());
|
||||||
} else {
|
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}).show();
|
}).show();
|
||||||
|
} else {
|
||||||
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (id == R.id.share) {
|
if (id == R.id.share) {
|
||||||
|
@ -839,7 +843,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
if (Helpers.isOnline(MainActivity.this)) {
|
if (Helpers.isOnline(MainActivity.this)) {
|
||||||
webView.loadUrl(webView.getUrl());
|
webView.loadUrl(webView.getUrl());
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
dialog.cancel();
|
dialog.cancel();
|
||||||
}
|
}
|
||||||
|
@ -859,6 +863,20 @@ public class MainActivity extends AppCompatActivity
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
if (notificationCount > 0) {
|
if (notificationCount > 0) {
|
||||||
item.setIcon(R.drawable.ic_bell_ring_white_24dp);
|
item.setIcon(R.drawable.ic_bell_ring_white_24dp);
|
||||||
|
Snackbar snackbar = Snackbar
|
||||||
|
.make(swipeView, R.string.new_notifications, Snackbar.LENGTH_INDEFINITE)
|
||||||
|
.setAction(R.string.yes, new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
if (Helpers.isOnline(MainActivity.this)) {
|
||||||
|
webView.loadUrl("https://" + podDomain + "/notifications");
|
||||||
|
setTitle(R.string.jb_notifications);
|
||||||
|
} else {
|
||||||
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
snackbar.show();
|
||||||
} else {
|
} else {
|
||||||
item.setIcon(R.drawable.ic_bell_outline_white_24dp);
|
item.setIcon(R.drawable.ic_bell_outline_white_24dp);
|
||||||
}
|
}
|
||||||
|
@ -881,6 +899,21 @@ public class MainActivity extends AppCompatActivity
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
if (conversationCount > 0) {
|
if (conversationCount > 0) {
|
||||||
item.setIcon(R.drawable.ic_message_text_white_24dp);
|
item.setIcon(R.drawable.ic_message_text_white_24dp);
|
||||||
|
item.setIcon(R.drawable.ic_bell_ring_white_24dp);
|
||||||
|
Snackbar snackbar = Snackbar
|
||||||
|
.make(swipeView, R.string.new_conversations, Snackbar.LENGTH_INDEFINITE)
|
||||||
|
.setAction(R.string.yes, new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
if (Helpers.isOnline(MainActivity.this)) {
|
||||||
|
webView.loadUrl("https://" + podDomain + "/conversations");
|
||||||
|
setTitle(R.string.jb_notifications);
|
||||||
|
} else {
|
||||||
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
snackbar.show();
|
||||||
} else {
|
} else {
|
||||||
item.setIcon(R.drawable.ic_message_text_outline_white_24dp);
|
item.setIcon(R.drawable.ic_message_text_outline_white_24dp);
|
||||||
}
|
}
|
||||||
|
@ -903,7 +936,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
webView.loadUrl("https://" + podDomain + "/stream");
|
webView.loadUrl("https://" + podDomain + "/stream");
|
||||||
setTitle(R.string.jb_stream);
|
setTitle(R.string.jb_stream);
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (id == R.id.jb_followed_tags) {
|
} else if (id == R.id.jb_followed_tags) {
|
||||||
|
@ -911,7 +944,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
webView.loadUrl("https://" + podDomain + "/followed_tags");
|
webView.loadUrl("https://" + podDomain + "/followed_tags");
|
||||||
setTitle(R.string.jb_followed_tags);
|
setTitle(R.string.jb_followed_tags);
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (id == R.id.jb_aspects) {
|
} else if (id == R.id.jb_aspects) {
|
||||||
|
@ -919,7 +952,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
webView.loadUrl("https://" + podDomain + "/aspects");
|
webView.loadUrl("https://" + podDomain + "/aspects");
|
||||||
setTitle(R.string.jb_aspects);
|
setTitle(R.string.jb_aspects);
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (id == R.id.jb_activities) {
|
} else if (id == R.id.jb_activities) {
|
||||||
|
@ -927,7 +960,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
webView.loadUrl("https://" + podDomain + "/activity");
|
webView.loadUrl("https://" + podDomain + "/activity");
|
||||||
setTitle(R.string.jb_activities);
|
setTitle(R.string.jb_activities);
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (id == R.id.jb_liked) {
|
} else if (id == R.id.jb_liked) {
|
||||||
|
@ -935,7 +968,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
webView.loadUrl("https://" + podDomain + "/liked");
|
webView.loadUrl("https://" + podDomain + "/liked");
|
||||||
setTitle(R.string.jb_liked);
|
setTitle(R.string.jb_liked);
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (id == R.id.jb_commented) {
|
} else if (id == R.id.jb_commented) {
|
||||||
|
@ -943,7 +976,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
webView.loadUrl("https://" + podDomain + "/commented");
|
webView.loadUrl("https://" + podDomain + "/commented");
|
||||||
setTitle(R.string.jb_commented);
|
setTitle(R.string.jb_commented);
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (id == R.id.jb_mentions) {
|
} else if (id == R.id.jb_mentions) {
|
||||||
|
@ -951,7 +984,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
webView.loadUrl("https://" + podDomain + "/mentions");
|
webView.loadUrl("https://" + podDomain + "/mentions");
|
||||||
setTitle(R.string.jb_mentions);
|
setTitle(R.string.jb_mentions);
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (id == R.id.jb_public) {
|
} else if (id == R.id.jb_public) {
|
||||||
|
@ -959,101 +992,55 @@ public class MainActivity extends AppCompatActivity
|
||||||
webView.loadUrl("https://" + podDomain + "/public");
|
webView.loadUrl("https://" + podDomain + "/public");
|
||||||
setTitle(R.string.jb_public);
|
setTitle(R.string.jb_public);
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (id == R.id.jb_settings_view) {
|
} else if (id == R.id.jb_settings_view) {
|
||||||
final CharSequence[] options = { getString(R.string.settings_font), getString(R.string.settings_view),getString(R.string.settings_image) };
|
final CharSequence[] options = { getString(R.string.settings_font), getString(R.string.settings_view),getString(R.string.settings_image) };
|
||||||
|
if (Helpers.isOnline(MainActivity.this)) {
|
||||||
new AlertDialog.Builder(MainActivity.this)
|
new AlertDialog.Builder(MainActivity.this)
|
||||||
.setItems(options, new DialogInterface.OnClickListener() {
|
.setItems(options, new DialogInterface.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
||||||
public void onClick(DialogInterface dialog, int item) {
|
public void onClick(DialogInterface dialog, int item) {
|
||||||
|
|
||||||
if (options[item].equals(getString(R.string.settings_font)))
|
if (options[item].equals(getString(R.string.settings_font)))
|
||||||
|
|
||||||
{
|
|
||||||
if (Helpers.isOnline(MainActivity.this)) {
|
|
||||||
alertFormElements();
|
alertFormElements();
|
||||||
} else {
|
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (options[item].equals(getString(R.string.settings_view)))
|
if (options[item].equals(getString(R.string.settings_view)))
|
||||||
|
|
||||||
{
|
|
||||||
if (Helpers.isOnline(MainActivity.this)) {
|
|
||||||
webView.loadUrl("https://" + podDomain + "/mobile/toggle");
|
webView.loadUrl("https://" + podDomain + "/mobile/toggle");
|
||||||
} else { // No Internet connection
|
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (options[item].equals(getString(R.string.settings_image)))
|
if (options[item].equals(getString(R.string.settings_image)))
|
||||||
|
|
||||||
{
|
|
||||||
if (Helpers.isOnline(MainActivity.this)) {
|
|
||||||
wSettings.setLoadsImagesAutomatically(!pm.getLoadImages());
|
wSettings.setLoadsImagesAutomatically(!pm.getLoadImages());
|
||||||
pm.setLoadImages(!pm.getLoadImages());
|
pm.setLoadImages(!pm.getLoadImages());
|
||||||
webView.loadUrl(webView.getUrl());
|
webView.loadUrl(webView.getUrl());
|
||||||
} else {
|
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}).show();
|
}).show();
|
||||||
|
} else {
|
||||||
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
|
}
|
||||||
|
|
||||||
} else if (id == R.id.jb_settings_diaspora) {
|
} else if (id == R.id.jb_settings_diaspora) {
|
||||||
|
|
||||||
final CharSequence[] options2 = { getString(R.string.jb_settings), getString(R.string.jb_manage_tags),
|
final CharSequence[] options2 = { getString(R.string.jb_settings), getString(R.string.jb_manage_tags),
|
||||||
getString(R.string.jb_contacts), getString(R.string.jb_pod) };
|
getString(R.string.jb_contacts), getString(R.string.jb_pod) };
|
||||||
|
if (Helpers.isOnline(MainActivity.this)) {
|
||||||
new AlertDialog.Builder(MainActivity.this)
|
new AlertDialog.Builder(MainActivity.this)
|
||||||
.setItems(options2, new DialogInterface.OnClickListener() {
|
.setItems(options2, new DialogInterface.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
||||||
public void onClick(DialogInterface dialog, int item) {
|
public void onClick(DialogInterface dialog, int item) {
|
||||||
|
|
||||||
if (options2[item].equals(getString(R.string.jb_settings)))
|
if (options2[item].equals(getString(R.string.jb_settings)))
|
||||||
|
|
||||||
{
|
|
||||||
setTitle(R.string.jb_settings);
|
|
||||||
if (Helpers.isOnline(MainActivity.this)) {
|
|
||||||
webView.loadUrl("https://" + podDomain + "/user/edit");
|
webView.loadUrl("https://" + podDomain + "/user/edit");
|
||||||
} else { // No Internet connection
|
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (options2[item].equals(getString(R.string.jb_manage_tags)))
|
if (options2[item].equals(getString(R.string.jb_manage_tags)))
|
||||||
|
|
||||||
{
|
|
||||||
setTitle(R.string.jb_manage_tags);
|
|
||||||
if (Helpers.isOnline(MainActivity.this)) {
|
|
||||||
webView.loadUrl("https://" + podDomain + "/tag_followings/manage");
|
webView.loadUrl("https://" + podDomain + "/tag_followings/manage");
|
||||||
} else { // No Internet connection
|
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (options2[item].equals(getString(R.string.jb_contacts)))
|
if (options2[item].equals(getString(R.string.jb_contacts)))
|
||||||
|
|
||||||
{
|
|
||||||
setTitle(R.string.jb_contacts);
|
|
||||||
if (Helpers.isOnline(MainActivity.this)) {
|
|
||||||
webView.loadUrl("https://" + podDomain + "/contacts");
|
webView.loadUrl("https://" + podDomain + "/contacts");
|
||||||
} else { // No Internet connection
|
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (options2[item].equals(getString(R.string.jb_pod)))
|
if (options2[item].equals(getString(R.string.jb_pod)))
|
||||||
|
|
||||||
{
|
|
||||||
if (Helpers.isOnline(MainActivity.this)) {
|
|
||||||
new AlertDialog.Builder(MainActivity.this)
|
new AlertDialog.Builder(MainActivity.this)
|
||||||
.setTitle(getString(R.string.confirmation))
|
.setTitle(getString(R.string.confirmation))
|
||||||
.setMessage(getString(R.string.change_pod_warning))
|
.setMessage(getString(R.string.change_pod_warning))
|
||||||
|
@ -1074,17 +1061,14 @@ public class MainActivity extends AppCompatActivity
|
||||||
dialog.cancel();
|
dialog.cancel();
|
||||||
}
|
}
|
||||||
}).show();
|
}).show();
|
||||||
} else {
|
|
||||||
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}).show();
|
}).show();
|
||||||
|
} else {
|
||||||
|
Snackbar.make(swipeView, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
|
}
|
||||||
|
|
||||||
} else if (id == R.id.jb_license_help) {
|
} else if (id == R.id.jb_license_help) {
|
||||||
final CharSequence[] options = { getString(R.string.help_license), getString(R.string.help_help), getString(R.string.help_donate) };
|
final CharSequence[] options = { getString(R.string.help_license), getString(R.string.help_about), getString(R.string.help_help), getString(R.string.help_donate) };
|
||||||
new AlertDialog.Builder(MainActivity.this)
|
new AlertDialog.Builder(MainActivity.this)
|
||||||
.setItems(options, new DialogInterface.OnClickListener() {
|
.setItems(options, new DialogInterface.OnClickListener() {
|
||||||
|
|
||||||
|
@ -1095,31 +1079,48 @@ public class MainActivity extends AppCompatActivity
|
||||||
if (options[item].equals(getString(R.string.help_license)))
|
if (options[item].equals(getString(R.string.help_license)))
|
||||||
|
|
||||||
{
|
{
|
||||||
new AlertDialog.Builder(MainActivity.this)
|
final SpannableString s = new SpannableString(Html.fromHtml(getString(R.string.license_text)));
|
||||||
.setTitle(R.string.about_title)
|
Linkify.addLinks(s, Linkify.WEB_URLS);
|
||||||
.setMessage(getString(R.string.about_text))
|
|
||||||
.setPositiveButton(getString(R.string.about_yes),
|
final AlertDialog d = new AlertDialog.Builder(MainActivity.this)
|
||||||
new DialogInterface.OnClickListener() {
|
.setTitle(R.string.license_title)
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
.setMessage( s )
|
||||||
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/scoute-dich/Diaspora-Native-WebApp"));
|
.setPositiveButton(getString(R.string.yes),
|
||||||
startActivity(i);
|
|
||||||
dialog.cancel();
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.setNegativeButton(getString(R.string.about_no),
|
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
dialog.cancel();
|
dialog.cancel();
|
||||||
}
|
}
|
||||||
}).show();
|
}).show();
|
||||||
|
d.show();
|
||||||
|
((TextView)d.findViewById(android.R.id.message)).setMovementMethod(LinkMovementMethod.getInstance());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (options[item].equals(getString(R.string.help_about)))
|
||||||
|
|
||||||
|
{
|
||||||
|
final SpannableString s = new SpannableString(Html.fromHtml(getString(R.string.about_text)));
|
||||||
|
Linkify.addLinks(s, Linkify.WEB_URLS);
|
||||||
|
|
||||||
|
final AlertDialog d = new AlertDialog.Builder(MainActivity.this)
|
||||||
|
.setTitle(R.string.help_about)
|
||||||
|
.setMessage( s )
|
||||||
|
.setPositiveButton(getString(R.string.yes),
|
||||||
|
new DialogInterface.OnClickListener() {
|
||||||
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
|
dialog.cancel();
|
||||||
|
}
|
||||||
|
}).show();
|
||||||
|
d.show();
|
||||||
|
((TextView)d.findViewById(android.R.id.message)).setMovementMethod(LinkMovementMethod.getInstance());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options[item].equals(getString(R.string.help_help)))
|
if (options[item].equals(getString(R.string.help_help)))
|
||||||
|
|
||||||
{
|
{
|
||||||
new AlertDialog.Builder(MainActivity.this)
|
new AlertDialog.Builder(MainActivity.this)
|
||||||
.setMessage(getString(R.string.markdown_text))
|
.setTitle(R.string.help_help)
|
||||||
.setNegativeButton(getString(R.string.about_no),
|
.setMessage(Html.fromHtml(getString(R.string.markdown_text)))
|
||||||
|
.setPositiveButton(getString(R.string.yes),
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
dialog.cancel();
|
dialog.cancel();
|
||||||
|
@ -1132,19 +1133,19 @@ public class MainActivity extends AppCompatActivity
|
||||||
{
|
{
|
||||||
new AlertDialog.Builder(MainActivity.this)
|
new AlertDialog.Builder(MainActivity.this)
|
||||||
.setMessage(getString(R.string.donate_text))
|
.setMessage(getString(R.string.donate_text))
|
||||||
.setPositiveButton(getString(R.string.donate_1),
|
.setPositiveButton(getString(R.string.yes),
|
||||||
|
new DialogInterface.OnClickListener() {
|
||||||
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
|
dialog.cancel();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.setNegativeButton(getString(R.string.donate_1),
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
public void onClick(DialogInterface dialog, int id) {
|
||||||
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://martinv.tip.me/"));
|
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://martinv.tip.me/"));
|
||||||
startActivity(i);
|
startActivity(i);
|
||||||
dialog.cancel();
|
dialog.cancel();
|
||||||
}
|
}
|
||||||
})
|
|
||||||
.setNegativeButton(getString(R.string.about_no),
|
|
||||||
new DialogInterface.OnClickListener() {
|
|
||||||
public void onClick(DialogInterface dialog, int id) {
|
|
||||||
dialog.cancel();
|
|
||||||
}
|
|
||||||
}).show();
|
}).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ public class PodsActivity extends ActionBarActivity {
|
||||||
if (filter.getText().length() > 4 && filter.getText().toString().contains("."))
|
if (filter.getText().length() > 4 && filter.getText().toString().contains("."))
|
||||||
askConfirmation(filter.getText().toString());
|
askConfirmation(filter.getText().toString());
|
||||||
else
|
else
|
||||||
Snackbar.make(lv, R.string.valid_pod, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(lv, R.string.valid_pod, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ public class PodsActivity extends ActionBarActivity {
|
||||||
if (Helpers.isOnline(PodsActivity.this)) {
|
if (Helpers.isOnline(PodsActivity.this)) {
|
||||||
progressDialog.show();
|
progressDialog.show();
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(lv, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(lv, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -207,7 +207,7 @@ public class PodsActivity extends ActionBarActivity {
|
||||||
}).show();
|
}).show();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(lv, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(lv, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -248,7 +248,7 @@ public class PodsActivity extends ActionBarActivity {
|
||||||
startService(i);
|
startService(i);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(lv, R.string.no_internet, Snackbar.LENGTH_LONG).show();
|
Snackbar.make(lv, R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,6 @@ public class ShareActivity extends MainActivity {
|
||||||
private String podDomain;
|
private String podDomain;
|
||||||
private ValueCallback<Uri[]> mFilePathCallback;
|
private ValueCallback<Uri[]> mFilePathCallback;
|
||||||
private String mCameraPhotoPath;
|
private String mCameraPhotoPath;
|
||||||
private com.getbase.floatingactionbutton.FloatingActionsMenu fab;
|
|
||||||
private TextView txtTitle;
|
private TextView txtTitle;
|
||||||
private ProgressBar progressBar;
|
private ProgressBar progressBar;
|
||||||
|
|
||||||
|
@ -88,7 +87,7 @@ public class ShareActivity extends MainActivity {
|
||||||
SharedPreferences config = getSharedPreferences("PodSettings", MODE_PRIVATE);
|
SharedPreferences config = getSharedPreferences("PodSettings", MODE_PRIVATE);
|
||||||
podDomain = config.getString("podDomain", null);
|
podDomain = config.getString("podDomain", null);
|
||||||
|
|
||||||
fab = (com.getbase.floatingactionbutton.FloatingActionsMenu) findViewById(R.id.multiple_actions);
|
com.getbase.floatingactionbutton.FloatingActionsMenu fab = (com.getbase.floatingactionbutton.FloatingActionsMenu) findViewById(R.id.multiple_actions);
|
||||||
fab.setVisibility(View.GONE);
|
fab.setVisibility(View.GONE);
|
||||||
|
|
||||||
webView = (WebView)findViewById(R.id.webView);
|
webView = (WebView)findViewById(R.id.webView);
|
||||||
|
@ -296,7 +295,7 @@ public class ShareActivity extends MainActivity {
|
||||||
webView.reload();
|
webView.reload();
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
Snackbar.make(getWindow().findViewById(R.id.drawer_layout), R.string.no_internet, Snackbar.LENGTH_SHORT).show();
|
Snackbar.make(getWindow().findViewById(R.id.drawer_layout), R.string.no_internet, Snackbar.LENGTH_INDEFINITE).show();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources xmlns:re="http://schemas.android.com/tools" xmlns:href="urn:oasis:names:tc:xliff:document:1.2">
|
||||||
<string name="reload">Neu laden</string>
|
<string name="reload">Neu laden</string>
|
||||||
<string name="title_activity_pods">Pod auswählen</string>
|
<string name="title_activity_pods">Pod auswählen</string>
|
||||||
<string name="filter_hint">Pod-Domain eingeben</string>
|
<string name="filter_hint">Pod-Domain eingeben</string>
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
<string name="confirmation">Bestätigung</string>
|
<string name="confirmation">Bestätigung</string>
|
||||||
<string name="confirm_pod">Willst du folgenden Pod benutzen: </string>
|
<string name="confirm_pod">Willst du folgenden Pod benutzen: </string>
|
||||||
<string name="confirm_exit">Möchtest du die App verlassen?</string>
|
<string name="confirm_exit">Möchtest du die App verlassen?</string>
|
||||||
<string name="yes">JA</string>
|
<string name="yes">OK</string>
|
||||||
<string name="no">NEIN</string>
|
<string name="no">NEIN</string>
|
||||||
<string name="change_pod_warning">Das wird alle Cookies und Session-Daten löschen. Willst du wirklich den Pod wechseln?</string>
|
<string name="change_pod_warning">Das wird alle Cookies und Session-Daten löschen. Willst du wirklich den Pod wechseln?</string>
|
||||||
|
|
||||||
|
@ -75,48 +75,58 @@
|
||||||
<string name="toast_screenshot">Bildschirmfoto wird gespeichert...</string>
|
<string name="toast_screenshot">Bildschirmfoto wird gespeichert...</string>
|
||||||
<string name="jb_settings_diaspora">Diaspora Einstellungen</string>
|
<string name="jb_settings_diaspora">Diaspora Einstellungen</string>
|
||||||
<string name="jb_settings_view">Ansichtseinstellungen</string>
|
<string name="jb_settings_view">Ansichtseinstellungen</string>
|
||||||
<string name="about_no">OK</string>
|
|
||||||
<string name="help_help">Markdown Formatierung</string>
|
<string name="help_help">Markdown Formatierung</string>
|
||||||
<string name="help_license">Lizenz</string>
|
<string name="help_license">Lizenz</string>
|
||||||
<string name="jb_help_license">Lizenz | Hilfe | Spende</string>
|
<string name="jb_help_license">Über die App | Hilfe</string>
|
||||||
<string name="markdown_text">"Auf Diaspora* ist es möglich, dass du deinen Text in Nachrichten, Kommentaren und Unterhaltungen formatierst, indem du ein vereinfachtes Mark-Up-System namens Markdown verwendest. Diese Seite stellt eine kurze Einleitung dar, um grundlegende Formatierungen anwenden zu können.\n\n
|
<string name="markdown_text"><i>"Auf Diaspora* ist es möglich, dass du deinen Text in Nachrichten, Kommentaren und
|
||||||
|
Unterhaltungen formatierst, indem du ein vereinfachtes Mark-Up-System namens Markdown verwendest. Diese Seite stellt
|
||||||
|
eine kurze Einleitung dar, um grundlegende Formatierungen anwenden zu können.</i><br> <br>
|
||||||
|
|
||||||
Überschriften\n
|
<b>Überschriften</b><br>
|
||||||
# das ist eine sehr große Überschrift\n
|
# das ist eine sehr große Überschrift<br>
|
||||||
## halb so groß wie die oben drüber\n
|
## halb so groß wie die oben drüber<br>
|
||||||
### doppelt so groß wie normaler Text\n\n
|
### doppelt so groß wie normaler Text<br> <br>
|
||||||
|
|
||||||
Kursiv und fett\n
|
<b>Kursiv und fett</b><br>
|
||||||
Kursiv: *Wort* oder _Wort_\n
|
Kursiv: *Wort* oder _Wort_<br>
|
||||||
Fett: **Wort** oder __Wort__\n
|
Fett: **Wort** oder __Wort__<br>
|
||||||
Fett kursiv: ***Wort*** oder ___Wort___\n\n
|
Fett kursiv: ***Wort*** oder ___Wort___<br> <br>
|
||||||
|
|
||||||
Aufzählung\n
|
<b>Aufzählung</b><br>
|
||||||
*, + oder - vor jeder Linie die du als Teil der Aufzählung haben willst oder 1., 2., usw. vor jedem Aufzählungspunkt.\n\n
|
*, + oder - vor jeder Linie die du als Teil der Aufzählung haben willst oder 1., 2., usw. vor jedem
|
||||||
|
Aufzählungspunkt.<br> <br>
|
||||||
|
|
||||||
Zitat\n
|
<b>Zitat</b><br>
|
||||||
Wenn du einen Teil eines Artikels oder eines anderen Kommentares zitieren willst, kannst du deinen Text bequem formatieren, indem du die Zeile oder den Abschnitt mit einem > Zeichen beginnst.\n\n
|
Wenn du einen Teil eines Artikels oder eines anderen Kommentares zitieren willst, kannst du deinen Text bequem formatieren,
|
||||||
|
indem du die Zeile oder den Abschnitt mit einem > Zeichen beginnst.<br> <br>
|
||||||
|
|
||||||
Horizontale Linie\n
|
<b>Horizontale Linie</b><br>
|
||||||
Um eine horizontale Linie zu erstellen benutzt du mindestens drei - - -, _ _ _ oder * * * in einer separaten Linie. Jede größere Anzahl bewirkt dasselbe und Leerzeichen zwischen den Zeichen stören nicht.\n\n
|
Um eine horizontale Linie zu erstellen benutzt du mindestens drei - - -, _ _ _ oder * * * in einer separaten Linie.
|
||||||
|
Jede größere Anzahl bewirkt dasselbe und Leerzeichen zwischen den Zeichen stören nicht.<br> <br>
|
||||||
|
|
||||||
Inline Link\n
|
<b>Inline Link</b><br>
|
||||||
[displayed text here](http://link.address.here \"alt text\") Der 'alt text' ist optional, und zeigt einen Tool-Tip, wenn der Curser sich über den Link bewegt.\n\n
|
[angezeigter Text hier](http://link.addresse.hier \"alt text\") Der 'alt text' ist optional, und zeigt einen Tool-Tip,
|
||||||
|
wenn der Curser sich über den Link bewegt.<br> <br>
|
||||||
|
|
||||||
Externe Bilder\n
|
<b>Externe Bilder</b><br>
|
||||||
![Alt text](http://website.com/image.jpg \"optional title\") Der 'alt text' in der eckigen Klammer wird angezeigt, wenn das Bild nicht geladen werden kann. Der optionale Titel zeigt einen Tool-Tip, wenn der Curser sich über den Link bewegt. Beides ist nützlich aber nicht nötig.\n\n
|
![Alt text](http://website.com/image.jpg \"optionaler Titel\") Der 'alt text' in der eckigen Klammer wird angezeigt,
|
||||||
|
wenn das Bild nicht geladen werden kann. Der optionale Titel zeigt einen Tool-Tip, wenn der Curser sich über den Link bewegt.
|
||||||
|
Beides ist nützlich aber nicht nötig.<br> <br>
|
||||||
|
|
||||||
Escape\n
|
<b>Escape</b><br>
|
||||||
Wenn du in deiner Nachricht ein Zeichen benutzen willst, das ebenfalls zur Markdownformatierung verwendet wird, kannst du verhindern, dass es von Markdown als Formatcode gelesen wird, indem du es 'escapest'. Um dies zu tun, musst du einen Backslash vor das Zeichen setzen. Du kannst trotzdem 'diaspora*' oder 'D*' schreiben, ohne dass das Sternchen als formatierender Code gelesen wird!\n\n
|
Wenn du in deiner Nachricht ein Zeichen benutzen willst, das ebenfalls zur Markdownformatierung verwendet wird, kannst du
|
||||||
|
verhindern, dass es von Markdown als Formatcode gelesen wird, indem du es 'escapest'. Um dies zu tun, musst du einen
|
||||||
|
Backslash vor das Zeichen setzen. Du kannst trotzdem 'diaspora*' oder 'D*' schreiben, ohne dass das Sternchen als
|
||||||
|
formatierender Code gelesen wird!<br> <br>
|
||||||
|
|
||||||
Sonderzeichen\n
|
<b>Sonderzeichen</b><br>
|
||||||
Du kannst Symbole und Sonderzeichen nutzen, indem du bestimmte Zeichenfolgen verwendest. Z.B.:\n
|
Du kannst Symbole und Sonderzeichen nutzen, indem du bestimmte Zeichenfolgen verwendest. Z.B.:<br>
|
||||||
(c) = © ; (r) = ® ; x^2 = x²"</string>
|
(c) = © ; (r) = ® ; x^2 = x²"</string>
|
||||||
<string name="about_yes">Besuche die Projektseite auf GitHub</string>
|
<string name="license_yes">OK</string>
|
||||||
<string name="about_text">Zuerst einmal: ich bin kein Entwickler. Ich verstehe ein paar Grundlagen, aber das Meiste meiner
|
<string name="license_text"><i>Zuerst einmal: ich bin kein Entwickler. Ich verstehe ein paar Grundlagen, aber das Meiste meiner
|
||||||
Arbeit ist mit \"Copy and Paste\" passiert. Diese App ist ein Fork der original \"DiasporaNativeWebApp\"
|
Arbeit ist mit \"Copy and Paste\" passiert. Diese App ist ein Fork der original \"DiasporaNativeWebApp\"
|
||||||
von \"martinchodev\" (der die allermeiste Arbeit erledigt hat -> mein großer Dank gilt ihm), welche unter der GPL-Lizenz
|
von \"martinchodev\" (der die allermeiste Arbeit erledigt hat -> mein großer Dank gilt ihm), welche unter der GPL-Lizenz
|
||||||
veröffentlicht wurde.\n\n
|
veröffentlicht wurde.</i> <br> <br>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -129,11 +139,11 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see http://www.gnu.org/licenses/.\n\n
|
along with this program. If not, see http://www.gnu.org/licenses.<br> <br>
|
||||||
|
|
||||||
Die Bilder des Startbildschirms können auf Flickr gefunden werden:
|
<i>Die Bilder des Startbildschirms können auf Flickr gefunden werden:
|
||||||
https://www.flickr.com/photos/129581906@N06/sets/72157651933980136/with/16594947123/.
|
https://www.flickr.com/photos/129581906@N06/sets/72157651933980136/with/16594947123.
|
||||||
Sie wurden von \"Lydia\" veröffentlicht und stehen unter der cc by-nc-sa Lizenz.</string>
|
Sie wurden von \"Lydia\" veröffentlicht und stehen unter der cc by-nc-sa Lizenz.</i></string>
|
||||||
<string name="fab2_title_person">Suche nach Personen ...</string>
|
<string name="fab2_title_person">Suche nach Personen ...</string>
|
||||||
<string name="fab2_title_tag">Suche nach Tags ...</string>
|
<string name="fab2_title_tag">Suche nach Tags ...</string>
|
||||||
<string name="donate_1">per Bitcoin</string>
|
<string name="donate_1">per Bitcoin</string>
|
||||||
|
@ -141,4 +151,6 @@ along with this program. If not, see http://www.gnu.org/licenses/.\n\n
|
||||||
eine Kleinigkeit spenden:</string>
|
eine Kleinigkeit spenden:</string>
|
||||||
<string name="help_donate">Spenden</string>
|
<string name="help_donate">Spenden</string>
|
||||||
<string name="splash_screen_description">Startbildschirm</string>
|
<string name="splash_screen_description">Startbildschirm</string>
|
||||||
|
<string name="new_conversations">Ungelesene Unterhaltung. Öffnen?</string>
|
||||||
|
<string name="new_notifications">Ungelesene Benachrichtigung. Lesen?</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
<string name="navigation_drawer_close" translatable="false">Close navigation drawer</string>
|
<string name="navigation_drawer_close" translatable="false">Close navigation drawer</string>
|
||||||
<string name="app_name" translatable="false">Diaspora</string>
|
<string name="app_name" translatable="false">Diaspora</string>
|
||||||
<string name="reload">Reload</string>
|
<string name="reload">Reload</string>
|
||||||
|
<string name="new_notifications">Unread notification. Want to read it?</string>
|
||||||
|
<string name="new_conversations">Unread conversation. Open it?</string>
|
||||||
<string name="permissions">You must grant \"Access Storage Permission\" to save screenshots. After that you should
|
<string name="permissions">You must grant \"Access Storage Permission\" to save screenshots. After that you should
|
||||||
completely close the app or restart the phone. If you don\'t permit the storage access but want to use the
|
completely close the app or restart the phone. If you don\'t permit the storage access but want to use the
|
||||||
screenshot function at a later time, you can grant the permission later. Please open then: systemsettings - apps -
|
screenshot function at a later time, you can grant the permission later. Please open then: systemsettings - apps -
|
||||||
|
@ -37,7 +39,7 @@
|
||||||
|
|
||||||
<string name="app_copyright" translatable="false">The community-run distributed social network</string>
|
<string name="app_copyright" translatable="false">The community-run distributed social network</string>
|
||||||
<string name="jb_menu_1">Settings</string>
|
<string name="jb_menu_1">Settings</string>
|
||||||
<string name="jb_help_license">License | Help | Donate</string>
|
<string name="jb_help_license">About the app | Help</string>
|
||||||
<string name="jb_stream">Stream</string>
|
<string name="jb_stream">Stream</string>
|
||||||
<string name="jb_notifications">Notifications</string>
|
<string name="jb_notifications">Notifications</string>
|
||||||
<string name="jb_conversations">Conversations</string>
|
<string name="jb_conversations">Conversations</string>
|
||||||
|
@ -66,6 +68,7 @@
|
||||||
<string name="help_license">License</string>
|
<string name="help_license">License</string>
|
||||||
<string name="help_help">Markdown formating</string>
|
<string name="help_help">Markdown formating</string>
|
||||||
<string name="help_donate">Donate</string>
|
<string name="help_donate">Donate</string>
|
||||||
|
<string name="help_about">Changelog</string>
|
||||||
|
|
||||||
<string name="toast_screenshot">Taking screenshot ...</string>
|
<string name="toast_screenshot">Taking screenshot ...</string>
|
||||||
|
|
||||||
|
@ -87,49 +90,75 @@
|
||||||
|
|
||||||
//Dialog //License
|
//Dialog //License
|
||||||
|
|
||||||
<string name="markdown_text">"On diaspora* it's possible to format your text in status messages, comments and conversations using a simplified mark-up system called Markdown. This page gives an introduction to the codes used to create this formatting.\n\n
|
<string name="markdown_text"><i>"On diaspora* it's possible to format your text in status messages, comments
|
||||||
|
and conversations using a simplified mark-up system called Markdown. This page gives an introduction to the
|
||||||
|
codes used to create this formatting.</i><br> <br>
|
||||||
|
|
||||||
Heading\n
|
<b>Heading</b><br>
|
||||||
# This is an extremely large header\n
|
# This is an extremely large header<br>
|
||||||
## Half as big as the one above\n
|
## Half as big as the one above<br>
|
||||||
### Twice the size of normal text\n\n
|
### Twice the size of normal text<br> <br>
|
||||||
|
|
||||||
Italics and bold\n
|
<b>Italics and bold</b><br>
|
||||||
Italics: *word* or _word_\n
|
Italics: *word* or _word_<br>
|
||||||
Bold: **word** or __word__\n
|
Bold: **word** or __word__<br>
|
||||||
Bold italics: ***word*** or ___word___\n\n
|
Bold italics: ***word*** or ___word___<br> <br>
|
||||||
|
|
||||||
Bulleted list\n
|
<b>Bulleted list</b><br>
|
||||||
*, + or - in front of each line you want as part of the list or 1., 2., etc. in front of the list items\n\n
|
*, + or - in front of each line you want as part of the list or 1., 2., etc. in front of the list items<br> <br>
|
||||||
|
|
||||||
Quotation\n
|
<b>Quotation</b><br>
|
||||||
When you want to quote an extract of an article or another comment, you can conveniently format your text by starting the line or the paragraph by the > character\n\n
|
When you want to quote an extract of an article or another comment, you can conveniently format your text by starting the
|
||||||
|
line or the paragraph by the > character<br> <br>
|
||||||
|
|
||||||
Horizontal line\n
|
<b>Horizontal line</b><br>
|
||||||
To create a horizontal line, use at least three - - -, _ _ _ or * * * on a separate line. Any number above three will do the same thing and spaces between the characters do not matter.\n\n
|
To create a horizontal line, use at least three - - -, _ _ _ or * * * on a separate line. Any number above three will do
|
||||||
|
the same thing and spaces between the characters do not matter.<br> <br>
|
||||||
|
|
||||||
Inline link\n
|
<b>Inline link</b><br>
|
||||||
[displayed text here](http://link.address.here \"alt text\") The 'alt text' is optional, and is displayed as a tool-tip when the cursor is moved over the link.\n\n
|
[displayed text here](http://link.address.here \"alt text\") The 'alt text' is optional, and is displayed as a tool-tip
|
||||||
|
when the cursor is moved over the link.<br> <br>
|
||||||
|
|
||||||
External images\n
|
<b>External images</b><br>
|
||||||
![Alt text](http://website.com/image.jpg \"optional title\") The alternative text in the square brackets is displayed if the image cannot be loaded, and the optional title is displayed as a tool-tip when the cursor is moved over the image; both are useful but not essential.\n\n
|
![Alt text](http://website.com/image.jpg \"optional title\") The alternative text in the square brackets is displayed if the image cannot be loaded, and the optional title is displayed as a tool-tip when the cursor is moved over the image; both are useful but not essential.<br> <br>
|
||||||
|
|
||||||
Escape\n
|
<b>Escape</b><br>
|
||||||
If you want your message to include a character which is also used in Markdown coding, you can prevent it from being read by Markdown as a formatting code by 'escaping' it. To do this, place a backslash in front of the character. You can, however, type 'diaspora*' or 'D*' without the asterisk becoming a formatting code!\n\n
|
If you want your message to include a character which is also used in Markdown coding, you can prevent it from being read by Markdown as a formatting code by 'escaping' it. To do this, place a backslash in front of the character. You can, however, type 'diaspora*' or 'D*' without the asterisk becoming a formatting code!<br> <br>
|
||||||
|
|
||||||
Special characters\n
|
<b>Special characters</b><br>
|
||||||
You can create the following symbols and other special characters using a combination of characters:\n
|
You can create the following symbols and other special characters using a combination of characters:<br>
|
||||||
(c) = © ; (r) = ® ; x^2 = x²"</string>
|
(c) = © ; (r) = ® ; x^2 = x²"</string>
|
||||||
|
|
||||||
<string name="donate_text">If you like the app fell free to donate to the devoloper of the original \"DiasporaNativeWebApp\":</string>
|
<string name="donate_text">If you like the app fell free to donate to the devoloper of the original \"DiasporaNativeWebApp\":</string>
|
||||||
<string name="donate_1">Via Bitcoin</string>
|
<string name="donate_1">Via Bitcoin</string>
|
||||||
|
|
||||||
<string name="about_yes">Visit projectsite on Github</string>
|
<string name="about_text">
|
||||||
<string name="about_no">OK</string>
|
|
||||||
<string name="about_title" translatable="false">Copyright © 2016 by scoute-dich</string>
|
<b>v1.1:</b><br>
|
||||||
<string name="about_text">First of all: I am not a developer. I understand a few basics and most of my work is done
|
• new about app and help dialogs<br>
|
||||||
|
• better snackbar integration<br>
|
||||||
|
• click on titelbar to load stream<br><br>
|
||||||
|
|
||||||
|
<b>v1.0.1:</b><br>
|
||||||
|
• click on titelbar to load stream<br><br>
|
||||||
|
|
||||||
|
<b>v1.0:</b><br>
|
||||||
|
• all features of original Diaspora-Native-Webapp<br>
|
||||||
|
• popup menus (view settings, diaspora settings, share function)<br>
|
||||||
|
• share function (link, screenshot)<br>
|
||||||
|
• design improvements<br>
|
||||||
|
• implemented android marshmallow perimssion model<br>
|
||||||
|
• implemented swipe to refresh<br><br>
|
||||||
|
|
||||||
|
<i>Projectsite on github:<br>
|
||||||
|
https://github.com/scoute-dich/Diaspora/</i>
|
||||||
|
</string>
|
||||||
|
|
||||||
|
<string name="license_yes">OK</string>
|
||||||
|
<string name="license_title" translatable="false">Copyright © 2016 by scoute-dich</string>
|
||||||
|
<string name="license_text"><i>First of all: I am not a developer. I understand a few basics and most of my work is done
|
||||||
by copy and paste. This app is a fork of the original \"DiasporaNativeWebApp\"
|
by copy and paste. This app is a fork of the original \"DiasporaNativeWebApp\"
|
||||||
from \"martinchodev\" (who did most of the work -> big thanks to him), which is released under the GPL-license.\n\n
|
from \"martinchodev\" (who did most of the work -> big thanks to him), which is released under the GPL-license.</i> <br> <br>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -142,17 +171,17 @@
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see http://www.gnu.org/licenses/.\n\n
|
along with this program. If not, see http://www.gnu.org/licenses.<br> <br>
|
||||||
|
|
||||||
The splashscreen images can be found on flickr: https://www.flickr.com/photos/129581906@N06/sets/72157651933980136/with/16594947123/.
|
<i>The splashscreen images can be found on flickr:
|
||||||
They were published by \"Lydia\" and are licensed under cc by-nc-sa.</string>
|
https://www.flickr.com/photos/129581906@N06/sets/72157651933980136/with/16594947123.
|
||||||
|
They were published by \"Lydia\" and are licensed under cc by-nc-sa.</i></string>
|
||||||
|
|
||||||
<string name="splash_screen_description">Splash screen</string>
|
<string name="splash_screen_description">Splash screen</string>
|
||||||
<string name="please_reload">Please reload the stream</string>
|
<string name="please_reload">Please reload the stream</string>
|
||||||
<string name="normal">Normal</string>
|
<string name="normal">Normal</string>
|
||||||
<string name="large">Large</string>
|
<string name="large">Large</string>
|
||||||
<string name="huge">Huge</string>
|
<string name="huge">Huge</string>
|
||||||
|
|
||||||
<string name="image">Unable to get image</string>
|
<string name="image">Unable to get image</string>
|
||||||
|
|
||||||
<array name="splash_images">
|
<array name="splash_images">
|
||||||
|
|
Loading…
Reference in a new issue