]> git.ktnx.net Git - mobile-ledger.git/commitdiff
remove unused reference to the profile detail FAB
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 28 Mar 2019 22:10:13 +0000 (00:10 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 28 Mar 2019 22:10:13 +0000 (00:10 +0200)
the fragment already takes care of it

app/src/main/java/net/ktnx/mobileledger/ui/activity/ProfileDetailActivity.java

index e07be3b04683d8e8db212280f81e6280e12bd5bf..c308d6320fe73674461d56507c0227b39ca82b06 100644 (file)
@@ -20,10 +20,6 @@ package net.ktnx.mobileledger.ui.activity;
 import android.os.Bundle;
 import android.util.Log;
 import android.view.Menu;
-import android.view.View;
-
-import com.google.android.material.floatingactionbutton.FloatingActionButton;
-import com.google.android.material.snackbar.Snackbar;
 
 import net.ktnx.mobileledger.R;
 import net.ktnx.mobileledger.model.Data;
@@ -62,15 +58,6 @@ public class ProfileDetailActivity extends CrashReportingActivity {
         Toolbar toolbar = findViewById(R.id.detail_toolbar);
         setSupportActionBar(toolbar);
 
-        FloatingActionButton fab = findViewById(R.id.fab);
-        fab.setOnClickListener(new View.OnClickListener() {
-            @Override
-            public void onClick(View view) {
-                Snackbar.make(view, "Replace with your own detail action", Snackbar.LENGTH_LONG)
-                        .setAction("Action", null).show();
-            }
-        });
-
         // Show the Up button in the action bar.
         ActionBar actionBar = getSupportActionBar();
         if (actionBar != null) {