Fixes url from local streaming tl
This commit is contained in:
parent
9a85dbfe28
commit
0813d65bb8
|
@ -361,7 +361,7 @@ public class DisplayStatusFragment extends Fragment implements OnRetrieveFeedsIn
|
|||
if (textviewNoAction.getVisibility() == View.VISIBLE)
|
||||
textviewNoAction.setVisibility(View.GONE);
|
||||
}
|
||||
}else if(type == RetrieveFeedsAsyncTask.Type.PUBLIC){
|
||||
}else if(type == RetrieveFeedsAsyncTask.Type.PUBLIC || type == RetrieveFeedsAsyncTask.Type.LOCAL){
|
||||
if (context == null)
|
||||
return;
|
||||
//Avoids the array to be too big...
|
||||
|
@ -383,7 +383,6 @@ public class DisplayStatusFragment extends Fragment implements OnRetrieveFeedsIn
|
|||
textviewNoAction.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -100,7 +100,7 @@ public class StreamingLocalTimelineService extends IntentService {
|
|||
if( accountStream != null){
|
||||
try {
|
||||
|
||||
URL url = new URL("https://" + accountStream.getInstance() + "/api/v1/streaming/public?local=true");
|
||||
URL url = new URL("https://" + accountStream.getInstance() + "/api/v1/streaming/public/local");
|
||||
httpsURLConnection = (HttpsURLConnection) url.openConnection();
|
||||
httpsURLConnection.setRequestProperty("Content-Type", "application/json");
|
||||
httpsURLConnection.setRequestProperty("Authorization", "Bearer " + accountStream.getToken());
|
||||
|
@ -118,7 +118,6 @@ public class StreamingLocalTimelineService extends IntentService {
|
|||
if (!event.startsWith("data: ")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!sharedpreferences.getBoolean(Helper.SHOULD_CONTINUE_STREAMING_LOCAL + accountStream.getId(), true)) {
|
||||
stopSelf();
|
||||
return;
|
||||
|
|
|
@ -39,6 +39,7 @@ import android.support.v7.app.AlertDialog;
|
|||
import android.support.v7.widget.PopupMenu;
|
||||
import android.support.v7.widget.SearchView;
|
||||
import android.support.v7.widget.SwitchCompat;
|
||||
import android.util.Log;
|
||||
import android.util.Patterns;
|
||||
import android.view.Gravity;
|
||||
import android.view.LayoutInflater;
|
||||
|
|
Loading…
Reference in New Issue