Fixed various warnings.
This commit is contained in:
parent
c2cd6a9c66
commit
bdf165d80c
@ -634,7 +634,8 @@ public class AppDetails extends ListActivity {
|
|||||||
downloadHandler.cancel();
|
downloadHandler.cancel();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
pd.setButton(getString(R.string.cancel),
|
pd.setButton(DialogInterface.BUTTON_NEUTRAL,
|
||||||
|
getString(R.string.cancel),
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
pd.cancel();
|
pd.cancel();
|
||||||
@ -699,6 +700,8 @@ public class AppDetails extends ListActivity {
|
|||||||
Toast.LENGTH_SHORT).show();
|
Toast.LENGTH_SHORT).show();
|
||||||
finished = true;
|
finished = true;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return finished;
|
return finished;
|
||||||
}
|
}
|
||||||
|
@ -279,6 +279,7 @@ public class DB {
|
|||||||
public static abstract class CompatibilityChecker {
|
public static abstract class CompatibilityChecker {
|
||||||
|
|
||||||
// Because Build.VERSION.SDK_INT requires API level 5
|
// Because Build.VERSION.SDK_INT requires API level 5
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
protected final static int SDK_INT = Integer
|
protected final static int SDK_INT = Integer
|
||||||
.parseInt(Build.VERSION.SDK);
|
.parseInt(Build.VERSION.SDK);
|
||||||
|
|
||||||
|
@ -140,11 +140,6 @@ public class FDroid extends TabActivity implements OnItemClickListener,
|
|||||||
populateLists();
|
populateLists();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onStop() {
|
|
||||||
super.onStop();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCreateOptionsMenu(Menu menu) {
|
public boolean onCreateOptionsMenu(Menu menu) {
|
||||||
|
|
||||||
|
@ -116,6 +116,7 @@ public class ManageRepo extends ListActivity {
|
|||||||
fingerprint[i]);
|
fingerprint[i]);
|
||||||
}
|
}
|
||||||
server_line.put("fingerprint", formatter.toString());
|
server_line.put("fingerprint", formatter.toString());
|
||||||
|
formatter.close();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.w("FDroid", "Unable to get certificate fingerprint.\n"
|
Log.w("FDroid", "Unable to get certificate fingerprint.\n"
|
||||||
+ Log.getStackTraceString(e));
|
+ Log.getStackTraceString(e));
|
||||||
@ -169,7 +170,8 @@ public class ManageRepo extends ListActivity {
|
|||||||
|
|
||||||
alrt.setIcon(android.R.drawable.ic_menu_add);
|
alrt.setIcon(android.R.drawable.ic_menu_add);
|
||||||
alrt.setTitle(getString(R.string.repo_add_title));
|
alrt.setTitle(getString(R.string.repo_add_title));
|
||||||
alrt.setButton(getString(R.string.repo_add_add),
|
alrt.setButton(DialogInterface.BUTTON_POSITIVE,
|
||||||
|
getString(R.string.repo_add_add),
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
EditText uri = (EditText) alrt
|
EditText uri = (EditText) alrt
|
||||||
@ -186,7 +188,8 @@ public class ManageRepo extends ListActivity {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
alrt.setButton2(getString(R.string.cancel),
|
alrt.setButton(DialogInterface.BUTTON_NEGATIVE,
|
||||||
|
getString(R.string.cancel),
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user