mirror of
https://github.com/TrianguloY/LightningLauncher.git
synced 2024-12-26 09:58:20 +01:00
Extracted strings from the search feature.
This commit is contained in:
parent
088329a9f3
commit
4b0d443d10
3 changed files with 14 additions and 11 deletions
|
@ -110,7 +110,6 @@ public class Search {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Private: creates the dialog
|
||||
*/
|
||||
|
@ -118,18 +117,16 @@ public class Search {
|
|||
|
||||
View views = mCntx.getLayoutInflater().inflate(R.layout.dialog_search, null);
|
||||
|
||||
|
||||
mEdTxt = views.findViewById(R.id.srch_text);
|
||||
mChkBackwards = views.findViewById(R.id.srch_back);
|
||||
mChkCase = views.findViewById(R.id.srch_case);
|
||||
mChkRegexp = views.findViewById(R.id.srch_regexp);
|
||||
|
||||
//TODO: extract string resources (here and in R.layout.dialog_search )
|
||||
mDialog = new AlertDialog.Builder(mCntx)
|
||||
.setTitle("Search text")
|
||||
.setTitle(R.string.srch_ttl)
|
||||
.setView(views)
|
||||
.setCancelable(true)
|
||||
.setPositiveButton("search", new DialogInterface.OnClickListener() {
|
||||
.setPositiveButton(android.R.string.search_go, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
// After this code a 'dialog.dismiss()' will be called, so the dialog won't be shown again if necessary.
|
||||
|
@ -143,7 +140,7 @@ public class Search {
|
|||
});
|
||||
}
|
||||
})
|
||||
.setNegativeButton("cancel", null)
|
||||
.setNegativeButton(android.R.string.cancel, null)
|
||||
.create();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,17 +17,17 @@
|
|||
android:id="@+id/srch_back"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Backwards" />
|
||||
android:text="@string/srch_back" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/srch_case"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Match case" />
|
||||
android:text="@string/srch_case" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/srch_regexp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Regexp" />
|
||||
android:text="@string/srch_regexp" />
|
||||
</LinearLayout>
|
|
@ -1444,9 +1444,15 @@
|
|||
<string name="sp_none">No script</string>
|
||||
<string name="mi_pick_sh">Select shortcut</string>
|
||||
|
||||
<string name="srch_ttl">Search text</string>
|
||||
<string name="srch_back">Backwards</string>
|
||||
<string name="srch_regexp">Regexp</string>
|
||||
<string name="srch_case">Match case</string>
|
||||
|
||||
<!-- Do not translate -->
|
||||
<string name="app_name">Lightning Launcher</string>
|
||||
|
||||
|
||||
<!-- Do not translate -->
|
||||
<string name="app_name">Lightning Launcher</string>
|
||||
<string name="default_pack_name">English</string>
|
||||
|
||||
<!-- Do not change -->
|
||||
|
|
Loading…
Reference in a new issue