mirror of
https://github.com/gsantner/dandelion
synced 2024-11-22 04:12:08 +01:00
Reformat java files
This commit is contained in:
parent
4f3eac9977
commit
175125996e
12 changed files with 26 additions and 30 deletions
|
@ -28,7 +28,6 @@ import android.content.pm.PackageManager;
|
|||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.provider.MediaStore;
|
||||
import android.support.design.widget.Snackbar;
|
||||
import android.view.Menu;
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
*/
|
||||
package com.github.dfa.diaspora_android.data;
|
||||
|
||||
import android.net.ParseException;
|
||||
import android.os.Handler;
|
||||
|
||||
import com.github.dfa.diaspora_android.App;
|
||||
|
|
|
@ -93,6 +93,7 @@ public class UpdateTitleReceiver extends BroadcastReceiver {
|
|||
|
||||
public interface TitleCallback {
|
||||
void setTitle(String url, int resId);
|
||||
|
||||
void setTitle(String url, String title);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@ import android.content.SharedPreferences;
|
|||
import com.github.dfa.diaspora_android.R;
|
||||
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.DiasporaPodUrl;
|
||||
import com.github.dfa.diaspora_android.web.ProxyHandler;
|
||||
|
||||
import org.json.JSONException;
|
||||
|
@ -127,6 +126,7 @@ public class AppSettings {
|
|||
private int getInt(SharedPreferences pref, int ressourceId, int defaultValue) {
|
||||
return pref.getInt(context.getString(ressourceId), defaultValue);
|
||||
}
|
||||
|
||||
private long getLong(SharedPreferences pref, int ressourceId, long defaultValue) {
|
||||
return pref.getLong(context.getString(ressourceId), defaultValue);
|
||||
}
|
||||
|
@ -416,6 +416,7 @@ public class AppSettings {
|
|||
public long getLastVisitedPositionInStream() {
|
||||
return getLong(prefPod, R.string.pref_key__podprofile_last_stream_position, -1);
|
||||
}
|
||||
|
||||
public void setLastVisitedPositionInStream(long timestamp) {
|
||||
setLong(prefPod, R.string.pref_key__podprofile_last_stream_position, timestamp);
|
||||
}
|
||||
|
|
|
@ -153,6 +153,7 @@ public class Helpers {
|
|||
|
||||
/**
|
||||
* Send an Intent that opens url in any browser
|
||||
*
|
||||
* @param context context
|
||||
* @param url url
|
||||
*/
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
package com.github.dfa.diaspora_android.web;
|
||||
|
||||
import android.content.DialogInterface;
|
||||
import android.support.v7.app.AlertDialog;
|
||||
import android.webkit.JsResult;
|
||||
import android.webkit.WebView;
|
||||
import android.widget.ProgressBar;
|
||||
|
@ -66,18 +65,14 @@ public class DiasporaStreamWebChromeClient extends FileUploadWebChromeClient {
|
|||
builder.setTitle(view.getContext().getString(R.string.confirmation))
|
||||
.setMessage(message)
|
||||
.setPositiveButton(android.R.string.ok,
|
||||
new DialogInterface.OnClickListener()
|
||||
{
|
||||
public void onClick(DialogInterface dialog, int which)
|
||||
{
|
||||
new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
result.confirm();
|
||||
}
|
||||
})
|
||||
.setNegativeButton(android.R.string.cancel,
|
||||
new DialogInterface.OnClickListener()
|
||||
{
|
||||
public void onClick(DialogInterface dialog, int which)
|
||||
{
|
||||
new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
result.cancel();
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue