Skip to content

Commit

Permalink
Some cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bezloginu committed Feb 18, 2017
1 parent 87068ba commit 05967fb
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/f1x/mtcdialer/DialActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class DialActivity extends BluetoothServiceActivity {
@Override
protected void onCreate(Bundle savedInstance) {
super.onCreate(savedInstance);
setContentView(R.layout.layout_activity);
setContentView(R.layout.activity_transparent);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/f1x/mtcdialer/PhoneBookActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public void onPhoneBookRecordFetched(String record) {
public void onPhoneBookFetchFinished() {
this.unregister(PhoneBookActivity.this);
PhoneBookActivity.this.buildPhoneBook(mRawPhoneBookRecords);
PhoneBookActivity.this.onPhoneBookFetchFinished();

try {
PhoneBookActivity.this.mBluetoothServiceInterface.setPhoneBookList(mRawPhoneBookRecords);
Expand All @@ -75,6 +74,7 @@ public void onPhoneBookFetchFinished() {
Toast.makeText(PhoneBookActivity.this, e.getLocalizedMessage(), Toast.LENGTH_LONG).show();
}

PhoneBookActivity.this.onPhoneBookFetchFinished();
mRawPhoneBookRecords.clear();
}

Expand Down
3 changes: 0 additions & 3 deletions app/src/main/java/com/f1x/mtcdialer/PhoneBookReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
import android.content.Intent;
import android.content.IntentFilter;

import java.util.Map;
import java.util.TreeMap;

/**
* Created by COMPUTER on 2017-02-18.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ private void processSpeechInput(String input) {
}

if(phoneNumber != null) {
String text = String.format(this.getString(R.string.CallingTo), input);
Toast.makeText(this, text, Toast.LENGTH_LONG).show();
final String message = String.format(this.getString(R.string.CallingTo), input);
Toast.makeText(this, message, Toast.LENGTH_LONG).show();

Intent dialIntent = new Intent(this, DialActivity.class);
dialIntent.setData(Uri.parse("tel:" + phoneNumber));
Expand Down
File renamed without changes.

0 comments on commit 05967fb

Please sign in to comment.