12
12
import android .content .DialogInterface ;
13
13
import android .content .Intent ;
14
14
import android .content .IntentFilter ;
15
- import android .content .SharedPreferences ;
16
15
import android .content .pm .PackageManager ;
17
16
import android .content .res .Configuration ;
18
17
import android .database .Cursor ;
@@ -126,14 +125,11 @@ public class ZulipActivity extends BaseActivity implements
126
125
private static final int MIN_THRESOLD_EMOJI_HINT = 1 ;
127
126
private static final int PERMISSION_REQUEST_READ_CONTACTS = 1 ;
128
127
private ZulipApp app ;
129
- private List <Message > mutedTopics ;
130
128
131
129
private boolean suspended = false ;
132
130
private boolean logged_in = false ;
133
131
134
132
private ZulipActivity that = this ; // self-ref
135
- private SharedPreferences settings ;
136
- String client_id ;
137
133
138
134
private DrawerLayout drawerLayout ;
139
135
private ActionBarDrawerToggle drawerToggle ;
@@ -151,8 +147,6 @@ public class ZulipActivity extends BaseActivity implements
151
147
152
148
private Handler statusUpdateHandler ;
153
149
154
- private Toolbar toolbar ;
155
-
156
150
public MessageListFragment currentList ;
157
151
private MessageListFragment narrowedList ;
158
152
private MessageListFragment homeList ;
@@ -242,11 +236,6 @@ public boolean setViewValue(View view, Cursor cursor, int i) {
242
236
243
237
private RefreshableCursorAdapter peopleAdapter ;
244
238
245
- @ Override
246
- public void addToList (Message message ) {
247
- mutedTopics .add (message );
248
- }
249
-
250
239
@ Override
251
240
public void recyclerViewScrolled () {
252
241
/* in this method we check if the messageEt is empty or not
@@ -309,7 +298,7 @@ protected void onCreate(Bundle savedInstanceState) {
309
298
notifications = new Notifications (this );
310
299
notifications .register ();
311
300
setContentView (R .layout .main );
312
- toolbar = (Toolbar ) findViewById (R .id .toolbar );
301
+ Toolbar toolbar = (Toolbar ) findViewById (R .id .toolbar );
313
302
setSupportActionBar (toolbar );
314
303
getSupportActionBar ().setDisplayHomeAsUpEnabled (true );
315
304
getSupportActionBar ().setHomeButtonEnabled (true );
@@ -323,7 +312,6 @@ protected void onCreate(Bundle savedInstanceState) {
323
312
appBarLayout = (AppBarLayout ) findViewById (R .id .appBarLayout );
324
313
app .setZulipActivity (this );
325
314
togglePrivateStreamBtn = (ImageView ) findViewById (R .id .togglePrivateStream_btn );
326
- mutedTopics = new ArrayList <>();
327
315
drawerLayout = (DrawerLayout ) findViewById (R .id .drawer_layout );
328
316
drawerToggle = new ActionBarDrawerToggle (this , drawerLayout ,
329
317
R .drawable .ic_drawer , R .string .streams_open ,
0 commit comments