Fix one char value issue
This commit is contained in:
parent
09c4c838a5
commit
c47dcdb8a3
|
@ -3031,8 +3031,10 @@ public abstract class BaseMainActivity extends BaseActivity
|
|||
return;
|
||||
}
|
||||
}
|
||||
Intent streamingIntent = new Intent(this, LiveNotificationService.class);
|
||||
startService(streamingIntent);
|
||||
try {
|
||||
Intent streamingIntent = new Intent(this, LiveNotificationService.class);
|
||||
startService(streamingIntent);
|
||||
}catch(Exception ignored){}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -20,7 +20,6 @@ import android.content.SharedPreferences;
|
|||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.content.LocalBroadcastManager;
|
||||
import android.util.Log;
|
||||
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
|
@ -2191,7 +2190,6 @@ public class API {
|
|||
} catch (UnsupportedEncodingException e) {
|
||||
params.put("q", query);
|
||||
}
|
||||
Log.v(Helper.TAG,"q: " + query);
|
||||
try {
|
||||
HttpsConnection httpsConnection = new HttpsConnection(context);
|
||||
String response = httpsConnection.get(getAbsoluteUrl("/search"), 60, params, prefKeyOauthTokenT);
|
||||
|
|
|
@ -1304,7 +1304,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
holder.status_content.setVisibility(View.VISIBLE);
|
||||
holder.status_content_translated_container.setVisibility(View.GONE);
|
||||
}
|
||||
if( contentCheck.trim().length() < 2)
|
||||
if( contentCheck.trim().length() < 2 && !contentCheck.trim().matches("\\w+"))
|
||||
holder.status_content.setVisibility(View.GONE);
|
||||
else
|
||||
holder.status_content.setVisibility(View.VISIBLE);
|
||||
|
|
Loading…
Reference in New Issue