1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-22 12:22:08 +01:00

Reformat java files

This commit is contained in:
Gregor Santner 2016-12-18 15:07:23 +01:00
parent 4f3eac9977
commit 175125996e
No known key found for this signature in database
GPG key ID: 2AEB822A5CF48C9F
12 changed files with 26 additions and 30 deletions

View file

@ -28,7 +28,6 @@ import android.content.pm.PackageManager;
import android.net.Uri; import android.net.Uri;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.os.Handler;
import android.provider.MediaStore; import android.provider.MediaStore;
import android.support.design.widget.Snackbar; import android.support.design.widget.Snackbar;
import android.view.Menu; import android.view.Menu;

View file

@ -18,7 +18,6 @@
*/ */
package com.github.dfa.diaspora_android.data; package com.github.dfa.diaspora_android.data;
import android.net.ParseException;
import android.os.Handler; import android.os.Handler;
import com.github.dfa.diaspora_android.App; import com.github.dfa.diaspora_android.App;

View file

@ -93,6 +93,7 @@ public class UpdateTitleReceiver extends BroadcastReceiver {
public interface TitleCallback { public interface TitleCallback {
void setTitle(String url, int resId); void setTitle(String url, int resId);
void setTitle(String url, String title); void setTitle(String url, String title);
} }
} }

View file

@ -21,7 +21,6 @@ import android.content.SharedPreferences;
import com.github.dfa.diaspora_android.R; import com.github.dfa.diaspora_android.R;
import com.github.dfa.diaspora_android.data.DiasporaAspect; import com.github.dfa.diaspora_android.data.DiasporaAspect;
import com.github.dfa.diaspora_android.data.DiasporaPodList.DiasporaPod; import com.github.dfa.diaspora_android.data.DiasporaPodList.DiasporaPod;
import com.github.dfa.diaspora_android.data.DiasporaPodList.DiasporaPod.DiasporaPodUrl;
import com.github.dfa.diaspora_android.web.ProxyHandler; import com.github.dfa.diaspora_android.web.ProxyHandler;
import org.json.JSONException; import org.json.JSONException;
@ -127,6 +126,7 @@ public class AppSettings {
private int getInt(SharedPreferences pref, int ressourceId, int defaultValue) { private int getInt(SharedPreferences pref, int ressourceId, int defaultValue) {
return pref.getInt(context.getString(ressourceId), defaultValue); return pref.getInt(context.getString(ressourceId), defaultValue);
} }
private long getLong(SharedPreferences pref, int ressourceId, long defaultValue) { private long getLong(SharedPreferences pref, int ressourceId, long defaultValue) {
return pref.getLong(context.getString(ressourceId), defaultValue); return pref.getLong(context.getString(ressourceId), defaultValue);
} }
@ -416,6 +416,7 @@ public class AppSettings {
public long getLastVisitedPositionInStream() { public long getLastVisitedPositionInStream() {
return getLong(prefPod, R.string.pref_key__podprofile_last_stream_position, -1); return getLong(prefPod, R.string.pref_key__podprofile_last_stream_position, -1);
} }
public void setLastVisitedPositionInStream(long timestamp) { public void setLastVisitedPositionInStream(long timestamp) {
setLong(prefPod, R.string.pref_key__podprofile_last_stream_position, timestamp); setLong(prefPod, R.string.pref_key__podprofile_last_stream_position, timestamp);
} }

View file

@ -153,6 +153,7 @@ public class Helpers {
/** /**
* Send an Intent that opens url in any browser * Send an Intent that opens url in any browser
*
* @param context context * @param context context
* @param url url * @param url url
*/ */

View file

@ -19,7 +19,6 @@
package com.github.dfa.diaspora_android.web; package com.github.dfa.diaspora_android.web;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;
import android.webkit.JsResult; import android.webkit.JsResult;
import android.webkit.WebView; import android.webkit.WebView;
import android.widget.ProgressBar; import android.widget.ProgressBar;
@ -66,18 +65,14 @@ public class DiasporaStreamWebChromeClient extends FileUploadWebChromeClient {
builder.setTitle(view.getContext().getString(R.string.confirmation)) builder.setTitle(view.getContext().getString(R.string.confirmation))
.setMessage(message) .setMessage(message)
.setPositiveButton(android.R.string.ok, .setPositiveButton(android.R.string.ok,
new DialogInterface.OnClickListener() new DialogInterface.OnClickListener() {
{ public void onClick(DialogInterface dialog, int which) {
public void onClick(DialogInterface dialog, int which)
{
result.confirm(); result.confirm();
} }
}) })
.setNegativeButton(android.R.string.cancel, .setNegativeButton(android.R.string.cancel,
new DialogInterface.OnClickListener() new DialogInterface.OnClickListener() {
{ public void onClick(DialogInterface dialog, int which) {
public void onClick(DialogInterface dialog, int which)
{
result.cancel(); result.cancel();
} }
}) })