Reversed search arrow direction to be more intuitive
This commit is contained in:
parent
f06170ebfd
commit
1e8e78e6d7
@ -376,7 +376,8 @@ public class BrowserActivity extends Activity implements BrowserController {
|
|||||||
mDrawerRight);
|
mDrawerRight);
|
||||||
} else if (drawerView.equals(mDrawerRight)) {
|
} else if (drawerView.equals(mDrawerRight)) {
|
||||||
mDrawerLayout.closeDrawer(mDrawerLeft);
|
mDrawerLayout.closeDrawer(mDrawerLeft);
|
||||||
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED, mDrawerLeft);
|
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED,
|
||||||
|
mDrawerLeft);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -767,40 +768,40 @@ public class BrowserActivity extends Activity implements BrowserController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void showSearchInterfaceBar(String text) {
|
private void showSearchInterfaceBar(String text) {
|
||||||
if (mCurrentView != null) {
|
if (mCurrentView != null) {
|
||||||
mCurrentView.find(text);
|
mCurrentView.find(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
final RelativeLayout bar = (RelativeLayout) findViewById(R.id.search_bar);
|
final RelativeLayout bar = (RelativeLayout) findViewById(R.id.search_bar);
|
||||||
bar.setVisibility(View.VISIBLE);
|
bar.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
TextView tw = (TextView) findViewById(R.id.search_query);
|
TextView tw = (TextView) findViewById(R.id.search_query);
|
||||||
tw.setText("'" + text + "'");
|
tw.setText("'" + text + "'");
|
||||||
|
|
||||||
ImageButton up = (ImageButton) findViewById(R.id.button_next);
|
ImageButton up = (ImageButton) findViewById(R.id.button_next);
|
||||||
up.setOnClickListener(new View.OnClickListener() {
|
up.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
mCurrentView.getWebView().findNext(true);
|
mCurrentView.getWebView().findNext(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
ImageButton down = (ImageButton) findViewById(R.id.button_back);
|
ImageButton down = (ImageButton) findViewById(R.id.button_back);
|
||||||
down.setOnClickListener(new View.OnClickListener() {
|
down.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
mCurrentView.getWebView().findNext(false);
|
mCurrentView.getWebView().findNext(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
ImageButton quit = (ImageButton) findViewById(R.id.button_quit);
|
ImageButton quit = (ImageButton) findViewById(R.id.button_quit);
|
||||||
quit.setOnClickListener(new View.OnClickListener() {
|
quit.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
mCurrentView.getWebView().clearMatches();
|
mCurrentView.getWebView().clearMatches();
|
||||||
bar.setVisibility(View.GONE);
|
bar.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The click listener for ListView in the navigation drawer
|
* The click listener for ListView in the navigation drawer
|
||||||
|
@ -405,7 +405,6 @@ public class PrivacySettingsActivity extends Activity {
|
|||||||
} catch (Exception ignored) {
|
} catch (Exception ignored) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SettingsController.setClearHistory(true);
|
|
||||||
Utils.trimCache(this);
|
Utils.trimCache(this);
|
||||||
messageHandler.sendEmptyMessage(1);
|
messageHandler.sendEmptyMessage(1);
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,7 @@ import android.view.WindowManager;
|
|||||||
import android.widget.CheckBox;
|
import android.widget.CheckBox;
|
||||||
import android.widget.CompoundButton;
|
import android.widget.CompoundButton;
|
||||||
import android.widget.CompoundButton.OnCheckedChangeListener;
|
import android.widget.CompoundButton.OnCheckedChangeListener;
|
||||||
|
import android.widget.EditText;
|
||||||
import android.widget.RelativeLayout;
|
import android.widget.RelativeLayout;
|
||||||
import android.widget.Switch;
|
import android.widget.Switch;
|
||||||
import info.guardianproject.onionkit.ui.OrbotHelper;
|
import info.guardianproject.onionkit.ui.OrbotHelper;
|
||||||
@ -387,7 +388,7 @@ public class SettingsActivity extends Activity {
|
|||||||
String text = getAgent.getText().toString();
|
String text = getAgent.getText().toString();
|
||||||
mEditPrefs.putString(PreferenceConstants.USER_AGENT_STRING, text);
|
mEditPrefs.putString(PreferenceConstants.USER_AGENT_STRING, text);
|
||||||
mEditPrefs.commit();
|
mEditPrefs.commit();
|
||||||
mAgentTextView.setText(getResources().getString(R.string.agent_custom));
|
getAgent.setText(getResources().getString(R.string.agent_custom));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
agentStringPicker.show();
|
agentStringPicker.show();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user