mirror of
https://github.com/etesync/android
synced 2025-05-19 23:38:56 +00:00
Import - Change toolbar title according to relevant fragment
This commit is contained in:
parent
1629ffba9f
commit
a7c5ccadc9
@ -13,6 +13,7 @@ import android.view.LayoutInflater;
|
|||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
import android.widget.Toast;
|
||||||
|
|
||||||
import com.etesync.syncadapter.App;
|
import com.etesync.syncadapter.App;
|
||||||
import com.etesync.syncadapter.R;
|
import com.etesync.syncadapter.R;
|
||||||
@ -41,6 +42,8 @@ public class ImportActivity extends AppCompatActivity implements SelectImportMet
|
|||||||
|
|
||||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
|
|
||||||
|
setTitle(getString(R.string.import_dialog_title));
|
||||||
|
|
||||||
account = getIntent().getExtras().getParcelable(EXTRA_ACCOUNT);
|
account = getIntent().getExtras().getParcelable(EXTRA_ACCOUNT);
|
||||||
info = (CollectionInfo) getIntent().getExtras().getSerializable(EXTRA_COLLECTION_INFO);
|
info = (CollectionInfo) getIntent().getExtras().getSerializable(EXTRA_COLLECTION_INFO);
|
||||||
|
|
||||||
@ -73,6 +76,7 @@ public class ImportActivity extends AppCompatActivity implements SelectImportMet
|
|||||||
.addToBackStack(LocalContactImportFragment.class.getName())
|
.addToBackStack(LocalContactImportFragment.class.getName())
|
||||||
.commit();
|
.commit();
|
||||||
}
|
}
|
||||||
|
setTitle(getString(R.string.import_select_account));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void popBackStack() {
|
private void popBackStack() {
|
||||||
@ -121,13 +125,13 @@ public class ImportActivity extends AppCompatActivity implements SelectImportMet
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onImportSuccess() {
|
public void onImportSuccess() {
|
||||||
//todo tom what would you like to do?
|
//todo tom what would you like to do? toast?
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onImportFailed() {
|
public void onImportFailed() {
|
||||||
//todo tom what would you like to do?
|
//todo tom what would you like to do? toast?
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -252,5 +252,6 @@
|
|||||||
<!-- Import Activity -->
|
<!-- Import Activity -->
|
||||||
<string name="import_button_file">Import from flie</string>
|
<string name="import_button_file">Import from flie</string>
|
||||||
<string name="import_button_account">Import from account</string>
|
<string name="import_button_account">Import from account</string>
|
||||||
|
<string name="import_select_account">Select Account</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
Reference in New Issue
Block a user