Skip to content

Commit 5ca3ab7

Browse files
committed
few more reduced codacy issues
1 parent dddf157 commit 5ca3ab7

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

notifier/src/main/java/chipset/lugmnotifier/activites/AdminActivity.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,25 @@ public class AdminActivity extends AppCompatActivity {
4646

4747
private String title, detail, image, date;
4848
private Calendar calendar = Calendar.getInstance();
49-
private Button sendPushButton;
5049
public EditText pushNotificationTitleEditText, pushNotificationDetailEditText, pushNotificationImageEditText;
5150
public static EditText pushNotificationDateEditText;
5251
public Functions functions = new Functions();
5352
private ProgressDialog progressDialog;
54-
private Toolbar toolbar;
5553
public Long timeSinceEpoch;
5654
private CoordinatorLayout coordinatorLayout;
5755

5856
@Override
5957
protected void onCreate(Bundle savedInstanceState) {
6058
super.onCreate(savedInstanceState);
6159
setContentView(R.layout.activity_admin);
62-
toolbar = (Toolbar) findViewById(R.id.toolbar_admin);
60+
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar_admin);
6361
setSupportActionBar(toolbar);
6462
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
6563
coordinatorLayout=(CoordinatorLayout)findViewById(R.id.admin_coordinator_layout);
6664
progressDialog = new ProgressDialog(AdminActivity.this);
6765
progressDialog.setMessage("Please wait");
6866
progressDialog.setCancelable(false);
69-
sendPushButton = (Button) findViewById(R.id.sendPushButton);
67+
Button sendPushButton = (Button) findViewById(R.id.sendPushButton);
7068
pushNotificationTitleEditText = (EditText) findViewById(R.id.pushNotificationTitleEditText);
7169
pushNotificationDetailEditText = (EditText) findViewById(R.id.pushNotificationDetailEditText);
7270
pushNotificationImageEditText = (EditText) findViewById(R.id.pushNotificationImageEditText);

notifier/src/main/java/chipset/lugmnotifier/activites/DialogActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
* Date : 24/12/14
1717
*/
1818
public class DialogActivity extends AppCompatActivity {
19-
private Fragment fragment;
2019

2120
@Override
2221
protected void onCreate(Bundle savedInstanceState) {
2322
super.onCreate(savedInstanceState);
2423
setContentView(R.layout.activity_dialog);
2524
int f = getIntent().getIntExtra("Fragment", 1);
25+
Fragment fragment;
2626
switch (f) {
2727
case 0: {
2828
fragment = new LoginFragment();

notifier/src/main/java/chipset/lugmnotifier/activites/HomeActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public class HomeActivity extends AppCompatActivity {
6565
private Toolbar mToolbar;
6666
private DrawerLayout mDrawerLayout;
6767
private ActionBarDrawerToggle mDrawerToggle;
68-
private ListView drawerListView;
6968
private RecyclerView notificationsRecyclerView;
7069
private ArrayList<Notifications> notificationsArrayList;
7170
private SwipeRefreshLayout notificationSwipeRefreshLayout;
@@ -105,7 +104,7 @@ protected void onCreate(Bundle savedInstanceState) {
105104
String[] val = {"GitHub Organisation", "Facebook Page", "Facebook Group", "Twitter", "Website", "Core Committee", "Mailing List"};
106105
notificationSwipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.notificationSwipeRefreshLayout);
107106
notificationsRecyclerView = (RecyclerView) findViewById(R.id.notification_recycler_view);
108-
drawerListView = (ListView) findViewById(R.id.drawer_list);
107+
ListView drawerListView = (ListView) findViewById(R.id.drawer_list);
109108
drawerListView.setAdapter(new ArrayAdapter<>(HomeActivity.this, R.layout.navigation_drawer_list_item, R.id.navigation_drawer_item, val));
110109

111110
notificationSwipeRefreshLayout.setColorSchemeResources(R.color.peterRiver, R.color.alizarin, R.color.sunFlower, R.color.emerald);

0 commit comments

Comments
 (0)