Skip to content

Commit

Permalink
Fix issue#352 (getodk#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
Snailed authored and lognaturel committed Feb 6, 2017
1 parent bdaaeed commit 7bf48f6
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class BearingActivity extends Activity implements SensorEventListener {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTitle(getString(R.string.app_name) + " > " + getString(R.string.get_bearing));
setTitle(getString(R.string.get_bearing));

mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
accelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ public void onCreate(Bundle savedInstanceState) {
getString(R.string.draw_image));
}

setTitle(getString(R.string.app_name) + " > "
+ getString(R.string.draw_image));
setTitle(getString(R.string.draw_image));

LayoutInflater inflater = (LayoutInflater) getSystemService(
Context.LAYOUT_INFLATER_SERVICE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ public class FileManagerTabs extends TabActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setTitle(getString(R.string.app_name) + " > "
+ getString(R.string.manage_files));
setTitle(getString(R.string.manage_files));

final TabHost tabHost = getTabHost();
tabHost.setBackgroundColor(Color.WHITE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void onCreate(Bundle savedInstanceState) {
}

setContentView(R.layout.chooser_list_layout);
setTitle(getString(R.string.app_name) + " > " + getString(R.string.enter_data));
setTitle(getString(R.string.enter_data));

String sortOrder = FormsColumns.DISPLAY_NAME + " ASC, " + FormsColumns.JR_VERSION + " DESC";
Cursor c = managedQuery(FormsColumns.CONTENT_URI, null, null, null, sortOrder);
Expand Down Expand Up @@ -175,6 +175,7 @@ protected void onStop() {
/**
* Called by DiskSyncTask when the task is finished
*/

@Override
public void SyncComplete(String result) {
Log.i(t, "disk sync task complete");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public class FormDownloadList extends ListActivity implements FormListDownloader
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.remote_file_manage_list);
setTitle(getString(R.string.app_name) + " > " + getString(R.string.get_forms));
setTitle(getString(R.string.get_forms));
mAlertMsg = getString(R.string.please_wait);

// need white background before load
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@ public void onCreate(Bundle savedInstanceState) {
}

setContentView(R.layout.form_entry);
setTitle(getString(R.string.app_name) + " > "
+ getString(R.string.loading_form));
setTitle(getString(R.string.loading_form));

mErrorMessage = null;

Expand Down Expand Up @@ -1058,8 +1057,7 @@ public Object onRetainNonConfigurationInstance() {
private View createView(int event, boolean advancingPage) {
FormController formController = Collect.getInstance()
.getFormController();
setTitle(getString(R.string.app_name) + " > "
+ formController.getFormTitle());
setTitle(formController.getFormTitle());

switch (event) {
case FormEntryController.EVENT_BEGINNING_OF_FORM:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ public void onCreate(Bundle savedInstanceState) {
// We use a static FormEntryController to make jumping faster.
mStartIndex = formController.getFormIndex();

setTitle(getString(R.string.app_name) + " > "
+ formController.getFormTitle());
setTitle(formController.getFormTitle());

mPath = (TextView) findViewById(R.id.pathtext);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected void onCreate(Bundle savedInstanceState) {
}
}

setTitle(getString(R.string.app_name) + " > " + getString(R.string.get_location));
setTitle(getString(R.string.get_location));

mLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public class GoogleDriveActivity extends ListActivity implements GoogleApiClient
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setTitle(getString(R.string.app_name) + " > " + getString(R.string.google_drive));
setTitle(getString(R.string.google_drive));
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

setProgressBarVisibility(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected void onCreate(Bundle savedInstanceState) {
mAlertMsg = getString(R.string.please_wait);
mAlertShowing = false;

setTitle(getString(R.string.app_name) + " > " + getString(R.string.send_data));
setTitle(getString(R.string.send_data));

// get any simple saved state...
// resets alert message and showing dialog if the screen is rotated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void onCreate(Bundle savedInstanceState) {
}

setContentView(R.layout.chooser_list_layout);
setTitle(getString(R.string.app_name) + " > " + getString(R.string.review_data));
setTitle(getString(R.string.review_data));
TextView tv = (TextView) findViewById(R.id.status_text);
tv.setVisibility(View.GONE);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class InstanceChooserTabs extends TabActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTitle(getString(R.string.app_name) + " > " + getString(R.string.review_data));
setTitle(getString(R.string.review_data));

// create tab host and tweak color
final TabHost tabHost = getTabHost();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected void onCreate(Bundle savedInstanceState) {

mUploadedInstances = new HashMap<String, String>();

setTitle(getString(R.string.app_name) + " > " + getString(R.string.send_data));
setTitle(getString(R.string.send_data));

// get any simple saved state...
if (savedInstanceState != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ public void onClick(View v) {
mUploadButton.setEnabled(mSelected.size() > 0);

// set title
setTitle(getString(R.string.app_name) + " > "
+ getString(R.string.send_data));
setTitle(getString(R.string.send_data));

// if current activity is being reinitialized due to changing
// orientation restore all check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ protected void onCreate(Bundle savedInstanceState) {
.getVersionedAppName());
}

setTitle(getString(R.string.app_name) + " > "
+ getString(R.string.main_menu));
setTitle(getString(R.string.main_menu));

File f = new File(Collect.ODK_ROOT + "/collect.settings");
if (f.exists()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ public class AdminPreferencesActivity extends PreferenceActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTitle(getString(R.string.app_name) + " > "
+ getString(R.string.admin_preferences));
setTitle(getString(R.string.admin_preferences));

PreferenceManager prefMgr = getPreferenceManager();
prefMgr.setSharedPreferencesName(ADMIN_PREFERENCES);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.preferences);

setTitle(getString(R.string.app_name) + " > " + getString(R.string.general_preferences));
setTitle(getString(R.string.general_preferences));

// not super safe, but we're just putting in this mode to help
// administrate
Expand Down

0 comments on commit 7bf48f6

Please sign in to comment.