Use Toast instead of Snackbar because of raggedy fab (#1840)
* Use Toast instead of Snackbar because of raggedy fab
This commit is contained in:
parent
cb72db7ca6
commit
5d28c7ca6d
|
|
@ -50,6 +50,7 @@ import android.widget.Filterable;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.Switch;
|
import android.widget.Switch;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
import android.widget.Toast;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
|
|
@ -678,7 +679,7 @@ public class ScopeAdapter extends EmptyStateRecyclerView.EmptyStateAdapter<Scope
|
||||||
}
|
}
|
||||||
builder.setNegativeButton(!recommendedList.isEmpty() ? android.R.string.cancel : android.R.string.ok, (dialog, which) -> {
|
builder.setNegativeButton(!recommendedList.isEmpty() ? android.R.string.cancel : android.R.string.ok, (dialog, which) -> {
|
||||||
moduleUtil.setModuleEnabled(module.packageName, false);
|
moduleUtil.setModuleEnabled(module.packageName, false);
|
||||||
fragment.showHint(activity.getString(R.string.module_disabled_no_selection, module.getAppName()), true);
|
Toast.makeText(activity, activity.getString(R.string.module_disabled_no_selection, module.getAppName()), Toast.LENGTH_LONG).show();
|
||||||
fragment.getNavController().navigateUp();
|
fragment.getNavController().navigateUp();
|
||||||
});
|
});
|
||||||
builder.show();
|
builder.show();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue