102102import com .zulip .android .networking .response .UploadResponse ;
103103import com .zulip .android .util .ActivityTransitionAnim ;
104104import com .zulip .android .util .AnimationHelper ;
105- import com .zulip .android .util .Constants ;
106105import com .zulip .android .util .CommonProgressDialog ;
106+ import com .zulip .android .util .Constants ;
107107import com .zulip .android .util .FilePathHelper ;
108108import com .zulip .android .util .MutedTopics ;
109109import com .zulip .android .util .RemoveViewsOnScroll ;
@@ -209,7 +209,7 @@ public void onReceive(Context contenxt, Intent intent) {
209209 private EditText etSearchStream ;
210210 private ImageView ivSearchStreamCancel ;
211211 private ListView peopleDrawer ;
212- private Toast toast ;
212+ private Toast toast ;
213213 //
214214 private String streamSearchFilterKeyword = "" ;
215215 private SimpleCursorAdapter .ViewBinder peopleBinder = new SimpleCursorAdapter .ViewBinder () {
@@ -1112,7 +1112,7 @@ public void onClick(View view) {
11121112 */
11131113 private void showSoftKeyboard () {
11141114 InputMethodManager imm = (InputMethodManager ) getSystemService (Context .INPUT_METHOD_SERVICE );
1115- imm .toggleSoftInput (InputMethodManager .SHOW_IMPLICIT ,InputMethodManager .HIDE_IMPLICIT_ONLY );
1115+ imm .toggleSoftInput (InputMethodManager .SHOW_IMPLICIT , InputMethodManager .HIDE_IMPLICIT_ONLY );
11161116 }
11171117
11181118 private void displayChatBox (boolean show ) {
@@ -1700,7 +1700,7 @@ public void onBackPressed() {
17001700 drawerLayout .closeDrawers ();
17011701 return ;
17021702 }
1703- //check for narrowed or not
1703+ //check for narrowed or not
17041704 if (narrowedList == null ) {
17051705
17061706 if (backPressedOnce ) {
@@ -1755,7 +1755,8 @@ private void dismissToast() {
17551755
17561756 /**
17571757 * If previous toast is showing cancel it and show new one
1758- * @param string message in the toast
1758+ *
1759+ * @param string message in the toast
17591760 * @param duration of the toast to be shown
17601761 */
17611762 private void showToast (String string , int duration ) {
@@ -1821,7 +1822,7 @@ private void narrowPMWith(final Person person) {
18211822 if (!person .getEmail ().equals (app .getYou ().getEmail ()))
18221823 list .add (app .getYou ());
18231824 doNarrow (new NarrowFilterPM (list ));
1824- onNarrowFillSendBoxPrivate (new Person []{person },false );
1825+ onNarrowFillSendBoxPrivate (new Person []{person }, false );
18251826 }
18261827
18271828 @ TargetApi (Build .VERSION_CODES .HONEYCOMB )
@@ -1861,7 +1862,8 @@ public void doNarrow(NarrowFilter filter) {
18611862 /**
18621863 * This method creates a new Instance of the MessageListFragment and displays it with the filter
18631864 * whiling keeping the view anchored at {@param messageId}.
1864- * @param filter NarrowFilter passed
1865+ *
1866+ * @param filter NarrowFilter passed
18651867 * @param messageId used as anchor for fetching messages
18661868 */
18671869 public void doNarrow (NarrowFilter filter , int messageId ) {
@@ -2150,7 +2152,7 @@ private void setNightMode(@AppCompatDelegate.NightMode int nightMode) {
21502152 private void logout () {
21512153 commonProgressDialog .showWithMessage (getString (R .string .logging_out ));
21522154 this .logged_in = false ;
2153- final String serverUrl = app .getServerHostUri () ;
2155+ final String serverUrl = app .getServerHostUri ();
21542156
21552157 notifications .logOut (new Runnable () {
21562158 public void run () {
@@ -2296,6 +2298,7 @@ private void setupSnackBar() {
22962298 NarrowFilter narrowFilter ;
22972299 String prevId = null ;
22982300 int prevMessageSameCount = -1 ;
2301+
22992302 private void showSnackbarNotification (Message [] messages ) {
23002303 MutedTopics mutedTopics = MutedTopics .get ();
23012304 String notificationMessage ;
@@ -2337,7 +2340,7 @@ public void onClick(View view) {
23372340 });
23382341 } else {
23392342 if (messages .length == 1 ) tempMessage = messages [0 ];
2340- String name = (tempMessage .getType () == MessageType .PRIVATE_MESSAGE ) ? getString (R .string .notify_private , tempMessage .getSenderFullName ()) : getString (R .string .notify_stream , tempMessage .getStream ().getName () , tempMessage .getSubject ());
2343+ String name = (tempMessage .getType () == MessageType .PRIVATE_MESSAGE ) ? getString (R .string .notify_private , tempMessage .getSenderFullName ()) : getString (R .string .notify_stream , tempMessage .getStream ().getName (), tempMessage .getSubject ());
23412344 if (prevMessageSameCount > 0 ) name += " (" + prevMessageSameCount + ")" ;
23422345 notificationMessage = getResources ().getQuantityString (R .plurals .new_message , nonMutedMessagesCount , nonMutedMessagesCount , name );
23432346 narrowFilter = (tempMessage .getType () == MessageType .PRIVATE_MESSAGE ) ? new NarrowFilterPM (Arrays .asList (tempMessage .getRecipients (app ))) : new NarrowFilterStream (tempMessage .getStream (), tempMessage .getSubject ());
@@ -2369,6 +2372,7 @@ public MessageListFragment getCurrentMessageList() {
23692372 return narrowedList ;
23702373 }
23712374 }
2375+
23722376 /**
23732377 * This function shows the snackbar stating the connectivity status of the device and also changes the behaviour of the
23742378 * fab.
@@ -2391,7 +2395,7 @@ public void handleMessage(android.os.Message msg) {
23912395 displayChatBox (false );
23922396 displayFAB (true );
23932397 //Displays old offline messages
2394- if (narrowedList == null )
2398+ if (narrowedList == null )
23952399 onReadyToDisplay (true );
23962400 networkStatus = Constants .STATUS_NOT_CONNECTED ;
23972401 Snackbar .make (coordinatorLayout , R .string .no_connection , Snackbar .LENGTH_INDEFINITE ).show ();
0 commit comments