action moved

This commit is contained in:
arrase 2016-11-20 21:11:17 +01:00
parent d048cd6fb2
commit 08fb68dcaa
1 changed files with 3 additions and 3 deletions

View File

@ -54,9 +54,6 @@ public class HiddenServicesActivity extends AppCompatActivity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.layout_hs_list_view); setContentView(R.layout.layout_hs_list_view);
if (usesRuntimePermissions())
checkPermissions();
mCR = getContentResolver(); mCR = getContentResolver();
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
@ -87,6 +84,9 @@ public class HiddenServicesActivity extends AppCompatActivity {
@Override @Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) { public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
if (usesRuntimePermissions())
checkPermissions();
TextView port = (TextView) view.findViewById(R.id.hs_port); TextView port = (TextView) view.findViewById(R.id.hs_port);
TextView onion = (TextView) view.findViewById(R.id.hs_onion); TextView onion = (TextView) view.findViewById(R.id.hs_onion);