Remove unneeded local variables

The global variables have the same information; no need to look
up the information again.
This commit is contained in:
Branden Archer committed 2017-11-25 14:33:59 -05:00
1 parent 1fc7baa5a0
commit ec17255a43
1 file changed
-7
@@ -343,10 +343,6 @@ public class LoyaltyCardViewActivity extends AppCompatActivity
@Override
public boolean onCreateOptionsMenu(Menu menu)
{
final Bundle b = getIntent().getExtras();
final boolean updateLoyaltyCard = b != null && b.getBoolean("update", false);
final boolean viewLoyaltyCard = b != null && b.getBoolean("view", false);
if(viewLoyaltyCard)
{
getMenuInflater().inflate(R.menu.card_view_menu, menu);
@@ -370,9 +366,6 @@ public class LoyaltyCardViewActivity extends AppCompatActivity
{
int id = item.getItemId();
final Bundle b = getIntent().getExtras();
final int loyaltyCardId = b != null ? b.getInt("id") : 0;
switch(id)
{
case android.R.id.home: